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

Pan only when SVG are out of boundaries #407

Open
iCantWriteCode opened this issue May 14, 2021 · 1 comment
Open

Pan only when SVG are out of boundaries #407

iCantWriteCode opened this issue May 14, 2021 · 1 comment

Comments

@iCantWriteCode
Copy link

iCantWriteCode commented May 14, 2021

Hey there i am wondering if there is a way to achieve the below example using svg-pan-zoom

https://jsfiddle.net/uy390v8t/1/

i want pan to stop when svg boundary is getting inside scrollable area

@leoheck
Copy link

leoheck commented May 19, 2021

I think this is the default behavior at least this is what I get when using it.

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