Is getScroll working 'continuously' for a scrollable matrix possible?

Hi

I need to change top position of the small 'eye' button, according to the scroll y value.
But console.log(getScroll('this')) returns the value when it receives a value...

So is it possible, like for a panel, to get the scrolls value "continously" ?

image

And btw, thinking about some other threads i've read here, and some json i've explored, and keyboards velocities... i was wondering : is there a way to have two different parts in one button ? I mean, in this example, would it be possible to have on CC while touching the left part, and another if touching the right part ?...

getScroll('this') works as expected when run by the matrix itself.

So is it possible, like for a panel, to get the scrolls value "continously" ?

No, the matrix is a special case, its value doesn't hold its scroll state but instead an array that contains the value of all its children.

I mean, in this example, would it be possible to have on CC while touching the left part, and another if touching the right part ?...

Check out the documentation of the button's onValue property.

Gosh... locals.touchCoords... Was thinking "nooo... this idea is insane...". And there it is... :crazy_face:

Thank you