michaelbrusegard / WebGL-Fluid-Enhanced

WebGL Fluid Simulation for modern webpages (works even on mobile).
https://webgl-fluid-enhanced.michaelbrusegard.com
MIT License
45 stars 8 forks source link

Cursor is not pointing to correct position after scrolling #10

Closed adsonvinicius closed 2 months ago

adsonvinicius commented 7 months ago

Testing the sample cursor moving effect in readme, when a page scrolls the previous position saved does not consider the scroll position difference, so event.X and event.Y are not the same when moving again.

michaelbrusegard commented 5 months ago

@adsonvinicius sorry for the late reply, GitHub decided to not notify me ¯_(ツ)_/¯. Anyway I am unable to replicate your issue since the preview does not have scrolling (the canvas fills the whole viewport). Did you encounter this issue somewhere else?