robin-dela / flowmap-effect

Mouse Flowmap Deformation with OGL
https://tympanus.net/Development/FlowmapDeformation/
99 stars 27 forks source link

Update Mouse Position onscroll #5

Open leonlazer opened 1 year ago

leonlazer commented 1 year ago

Hey, overall the effects works perfect. But I'd like to update the mouse position when a user scrolls, so the flowmap effect is just in the canvas container. What would I need to do to achieve this?

Thanks in advance!

robin-dela commented 1 year ago

It's been a while since I looked at this code but I would do it by updating the updateMouse function with whatever scroll value you have. Maybe have a look here.