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

ZoomButtons: multiple calls to onLoadBefore and onLoadAfter per click #660

Open
1 of 3 tasks
yaro90 opened this issue Nov 14, 2022 · 1 comment
Open
1 of 3 tasks

Comments

@yaro90
Copy link

yaro90 commented Nov 14, 2022

I'm submitting a...

  • bug
  • feature
  • chore

What is the current behavior

Multiple calls to to onLoadBefore or onLoadAfter per click

What is the expected behavior

Single call to onLoadBefore or onLoadAfter per click

Please tell us about your environment

  • Version: 1.3.2
  • Browser: [all]

Other information

Possible solution is to add ignoreOnload flag which would be true until last interval is hit, but I'm not sure if optimal:
image
image

@amaneer94
Copy link

image
I used this solution from lodash debounce function, it helped me somehow.

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

No branches or pull requests

2 participants