I am trying to do a basic thing with the mouse wheel: set scrollY with the value passed to a callback function, and use it to scale an object.
However, when I am not scrolling, the function is not called and then it keeps the last value, and because of this, scrollY is never set to 0 and then the object is always scaling.
How can I set scrollY to 0 when I am not using the mouse wheel?