viewerjs
viewerjs copied to clipboard
Add option to enable "pan limit boundary"
I'm submitting a...
[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report
[x] Feature request
[x] Documentation issue or request
Current behavior
Hello everyone, there is a way to enable the pan limit boundary avoiding the image output from the screen view?
What is the motivation / use case for changing the behavior?
When i move an image, i don't want that image can go out of the screen view
Environment
Viewer.js version: X.Y.Z
Browser:
- [x] Chrome (desktop) version XX
- [x] Chrome (Android) version XX
- [x] Chrome (iOS) version XX
- [x] Firefox version XX
- [x] Safari (desktop) version XX
- [x] Safari (iOS) version XX
- [x] IE version XX
- [x] Edge version XX
Others:
Any update on this issue? Or is there some existing way to handle this ?
Ok, I can control this, but what is the correct behavior?
- Do not allow image to leave anything off the screen?
- Do not allow the image to exit more than 50% of the screen?
Check out this example: Moving range limit.