Replies: 2 comments 1 reply
-
I believe It wouldn't be too difficult for you to write your own centering behavior if you want… Watch for If you want the "bouncing" behavior (rather than it limiting it while you pan), you should set |
Beta Was this translation helpful? Give feedback.
-
Yes exactly. Thanks for the tip on implementing the centering behavior. I was able to use this technique to reproduce part of the centering effect from the 2.x . There are some other centering behaviors of the 2.x version that this doesn't cover however. For example when you zoom in with the scroll wheel in the example you zoom towards the mouse point — this works the same in OpenSeadragon 2.x and 4.x. But when you zoom out, in 4.x it zooms out centered around the mouse point again, causing the image to be off-center. In 2.x, it gradually moves towards the center of the viewport. Feel free to close this thread as it seems that the move away from automatically centering the image was intentional in more recent versions. But if you think you have a tip on the scroll wheel scenario mentioned above I would be grateful for your help. It would be great to be able to upgrade to the most recent version of OSD. Thanks for the quick reply! |
Beta Was this translation helpful? Give feedback.
-
I noticed that in one of the "in the wild" examples from the OpenSeadragon website, the image stays centered at all times (horizontally and vertically) when the sides of the image are smaller than the viewport. And if you try to pan while zoomed out it "bounces" back to the middle.
How do I reproduce these two behaviors?
My current options in case that helps:
Beta Was this translation helpful? Give feedback.
All reactions