flowmap-effect icon indicating copy to clipboard operation
flowmap-effect copied to clipboard

Update Mouse Position onscroll

Open leonlazer opened this issue 2 years ago • 1 comments

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!

leonlazer avatar Mar 06 '23 12:03 leonlazer

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.

robin-dela avatar Mar 06 '23 22:03 robin-dela