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

minScale bound not work correctly when zoom out with ctrl #438

Open
AnnaLysiuk opened this issue Nov 22, 2023 · 2 comments
Open

minScale bound not work correctly when zoom out with ctrl #438

AnnaLysiuk opened this issue Nov 22, 2023 · 2 comments

Comments

@AnnaLysiuk
Copy link

When setting minScale for TransformWrapper and trying to zoom out using ctrl button + mouse wheel unexpected behaviour happen (zoom out more than set value and go back to minScale).

Steps to reproduce the behaviour:

  1. Implement Transform Wrapper with minScale value set
  2. Try to zoom out using ctrl + mouse

Expected behaviour
elements are not zoom out more than set minScale value as it works e.g while using cmd + wheel

Screen.Recording.2023-11-22.at.09.29.13.mov
@azharalifauzi
Copy link

Hi @AnnaLysiuk ,
I'm facing this issue as well on my project. I solved the problem by disabling the zoomAnimation

<TransformWrapper
  zoomAnimation={{ disabled: true }}
  minScale={0.1}
  limitToBounds={false}
  // ...other props
/>

@AnnaLysiuk
Copy link
Author

AnnaLysiuk commented Feb 5, 2024 via email

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

2 participants