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

Is it possible to transform all move-, wheel– and scroll-events to passive? #1579

Closed
m4w opened this issue Jun 21, 2024 · 2 comments
Closed

Comments

@m4w
Copy link

m4w commented Jun 21, 2024

Question

Since I have many am charts on a single page (with cursor enabled), each chart possibly contains many data points.
I noticed, that scrolling gets more laggy each time a chart is added.
Also I get a warning by chrome, that I should use passive event-handlers.
So I was wondering, if you are able to increase the performance of AmCharts5 even more by using passiv eventhandlers.
I guess your listener functions do not use the event.preventDefault, therefore it should be a very minor change, with a big impact (hopefully).

I am using AmCharts 5.9.12

@martynasma
Copy link
Collaborator

We'd like to experiment with this.

Would you be able to post a sample of your chart including code and data, so that we can use it as a reference to your setup?

Copy link

This issue is stale because it has been open 30 days with no activity. It will be closed in 5 days unless a new comment is added.

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

No branches or pull requests

2 participants