-
Notifications
You must be signed in to change notification settings - Fork 292
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
Pan restrict only to image view #314
Comments
If I'm understanding your issue correctly, I have the same issue here- I want users to only be able to pan when zoomed in. I tried setting the bounds to {
left: svg.width.baseVal.value,
right: 0,
top: svg.height.baseVal.value,
bottom: 0,
} which does prevent me from panning while zoomed out... but it also prevents me from zooming in. |
_pan = panzoom(_fullImage |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can pan be restricted to only image visible?
The text was updated successfully, but these errors were encountered: