-
How can i remove eventlisteners from zoom function and make it unzoom only by button click? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
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! |
Beta Was this translation helpful? Give feedback.
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!