Skip to content

Remove Enentlistener from zoom #553

Answered by rpearce
NuraSad asked this question in Q&A
Discussion options

You must be logged in to vote

Look in the README and stories examples for the Controlled component. You can determine when it zooms and unzooms, and the change handler will let you know when it "should" zoom or unzoom.

I'm not currently sending back the event in the zoom change callback, but I wouldn't rule out doing so if necessary (that would allow you to check what the currentTarget is and check if it's tagName is a button).

Sorry for formatting--typing quickly on the mobile app!

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@NuraSad
Comment options

@rpearce
Comment options

Answer selected by rpearce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants