You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it's about mouseX and mousY calculation in the handleZoomControls function. In case of the "negative" scale (scale < 1) you should probably multiply instead of divide. The other way would be to calculate ratio and then do the multiplication.
In case of the scale below 1 with no bounds limit content seems to be positioned randomly while using zoomIn and zoomOut functions.
Configuration:
const options = { minScale: 0.1, maxScale: 3, limitToBounds: false, };
Everything seems to be fine while limitToBounds is set to true.
Video:
https://www.youtube.com/watch?v=h2qhwRi5KbU
The text was updated successfully, but these errors were encountered: