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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance issue for "pointermove" events #96

Open
christosnc opened this issue Mar 27, 2021 · 0 comments
Open

Performance issue for "pointermove" events #96

christosnc opened this issue Mar 27, 2021 · 0 comments

Comments

@christosnc
Copy link

Hello 馃憢,

Some browser events (such as pointermove) can fire faster than the frame-rate of the browser. This causes issues, because the browser cannot keep up. Although some browsers automatically "throttle" such events to run at 60fps, there are some bugs / inconsistencies.

For example, on Chrome, when the Dev-tools are open, the throttling doesn't work.
To reproduce, open the Dev-tools on Chrome and click the element attached to Pressure.js and move the mouse a lot. After a while you will see a performance drop, which only gets worse and worse.

Please refer to this article here which describes the problem in detail and proposes a solution.

Please consider this, as it makes the library completely unusable under those conditions.

Thanks!


Macbook Pro 16", macOS Big Sur, Chrome

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

1 participant