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

Feature request: Additional event in case of reaches of the minScale case #19

Open
psamusev opened this issue Oct 22, 2019 · 0 comments

Comments

@psamusev
Copy link

psamusev commented Oct 22, 2019

Current behavior just prevents the execution of scaling https://github.com/GoogleChromeLabs/pinch-zoom/blob/master/lib/pinch-zoom.ts#L273

but would be nice to dispatch some event to be able to handle the case when we are out of the minScale boundaries.

I have a logic, now subscribed to 'change' event when this.scale === minScale I prevent moving changes, by setting

this.setTransform({ scale: minScale, x: 0, y: 0, allowChangeEvent: false})

But in the case when provided line executed before, I couldn't check on my code level am I out of the minScale constrains or not

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

No branches or pull requests

1 participant