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

Invoke set range callback always and pass info about change #1703

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

zanella
Copy link

@zanella zanella commented Oct 23, 2023

The callback on zoomIn/zoomOut are only invoked inside setRange() when there's an actual change.

This makes it hard to decide what to do when using said functions (e.g. disable the zoom button if the max has been reached)

This change makes the button always be called, and to receive a new parameter, telling if a range change happened or not.


The linter pattern was not working (mac OS / zsh), now it is (npm run lint), but there are 78 problems 😅

Rafael Zanella added 2 commits October 23, 2023 15:36
 - The callback is alwys invoked
 - The callback now receives a parameter telling if a change has taken place
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

Successfully merging this pull request may close these issues.

1 participant