Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Mouse Position onscroll #5

Open
leonlazer opened this issue Mar 6, 2023 · 1 comment
Open

Update Mouse Position onscroll #5

leonlazer opened this issue Mar 6, 2023 · 1 comment

Comments

@leonlazer
Copy link

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants