minScale bound not work correctly when zoom out with ctrl
AnnaLysiuk opened this issue · 2 comments
AnnaLysiuk commented
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:
- Implement Transform Wrapper with minScale value set
- 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 commented
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 commented
Hi,
Thanks for a tip. Indeed it is fixing the issue. What are the consequences
of disabling the animation, what animation would not work? I do not see any
changes in my app performance but still not sure if I see it all.
Best regards,
pon., 22 sty 2024 o 15:52 Azhar Ali Fauzi ***@***.***>
napisał(a):
… Hi @AnnaLysiuk <https://github.com/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/>
—
Reply to this email directly, view it on GitHub
<#438 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGOB5UKVI3WQC3DN3PJDZR3YPZ4KRAVCNFSM6AAAAAA7V2W4ZCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBUGE3DSMBQGU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>