i know nothing about scroll spy (i don’t even know what it is or is supposed to be) and have no intention to find out to be honest.
if you want to customise things in a certain way to do whatever it is you want to do than great and have fun, but that’s really your job.
furthermore, if you need to do things in scroll spy, then surely it’s their support/forum where you should be asking things , no ?
there are also a bunch of action hooks you can use in the loops to do/add things in various places if you need to …in case that’s what you are looking for, but then again i have no idea what you need..