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
Feature: Ability to set a pan limit or padding limit #490
Comments
Thanks for opening an issue. Forgive me if I misunderstand the feature, but couldn't this be accomplished by adding a wrapper element and using |
Thanks for getting back to me so quickly. Maybe I'm not understanding My usecase: i have a large resolution historical map - that i want a user to be able to pan around, its too large to view the entire object but i don't want a user to "lose the map" by pushing it too far to one side, which sounds like i think the issue is the limitations that im coming across both
where i could imagine a |
This sounds like unique behavior and I'm not sure how to build it into the library. I think you could bind to the |
@timmywil over the past two days ive auctally come across that idea, to toggle between I guess thats alot of words for saying a if theres a voting for the auto feature, id be happy to support that :) |
I got the same issue, initial size of panzoom element is smaller than container, but user need to be able too zoom it in, and have possibility to pan it after this. |
What problem does this feature solve?
Describe the solution you'd like
The ability to set a panning limit to objects being panned
ie:
boundaryRatioVertical={0.8}
boundaryRatioHorizontal={0.8}
Describe alternatives you've considered
The
contain: 'inside'
value has a similar style, but i need to be able to toggle between zoom levels while maintaining the padding ratio limitThe text was updated successfully, but these errors were encountered: