Skip to content

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