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

Throttle all events (to 1 / frame each) #6953

Merged
merged 2 commits into from
Jan 14, 2020
Merged

Conversation

kurkle
Copy link
Member

@kurkle kurkle commented Jan 13, 2020

All events are throttled. Separately though, so click gets through when mousemove is throttled.

Change is simple, but a lot of tests were synchronous, so the change to tests is quite big.

@benmccann
Copy link
Contributor

benmccann commented Jan 13, 2020

I wonder if it could help with this recently filed bug against the zoom plugin? chartjs/chartjs-plugin-zoom#310 Maybe we would need to use throttled there?

@benmccann
Copy link
Contributor

It might be helpful to add a comment to throttled. I'm not very familiar with this part of the code and not quite sure how to review, so I might leave this one mostly to you and @etimberg

@kurkle
Copy link
Member Author

kurkle commented Jan 14, 2020

I wonder if it could help with this recently filed bug against the zoom plugin? chartjs/chartjs-plugin-zoom#310 Maybe we would need to use throttled there?

Should improve that too.

Copy link
Contributor

@benmccann benmccann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. I didn't really review this one super closely, but I don't see any issues

@etimberg etimberg merged commit a1c2dd6 into chartjs:master Jan 14, 2020
@etimberg etimberg added this to the Version 3.0 milestone Jan 14, 2020
@kurkle kurkle deleted the throttle branch February 19, 2020 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants