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
With you input devices, zoom in on the tiger to something definitely > 1x. Also, before or after, manipulate the DOM container of the tiger SVG to change its width/height.
At the JS console, effect the resize:
svgPanZoom.resize()
Attempt to zoom out. Turns out that the current zoom level seems to in effect be reset to 1x, and you can now zoom in and out as though starting fresh, except on a zoomed-in image.
In particular, the user is now able to zoom beyond configured maxZoom. This might also be the case for minZoom.
The text was updated successfully, but these errors were encountered:
My current workaround is to call .resetZoom() prior to .resize(). This will surprise users, but is less surprising than not being able zoom back to 1x after a resize event, such as by simply rotating their device.
Maybe I'm using it wrong, but...
Reproduction steps:
In particular, the user is now able to zoom beyond configured
maxZoom
. This might also be the case forminZoom
.The text was updated successfully, but these errors were encountered: