viewerjs icon indicating copy to clipboard operation
viewerjs copied to clipboard

Add option to enable "pan limit boundary"

Open MiNiCo88 opened this issue 6 years ago • 2 comments

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:

MiNiCo88 avatar May 23 '18 08:05 MiNiCo88

Any update on this issue? Or is there some existing way to handle this ?

jewelcai avatar Jan 08 '19 06:01 jewelcai

Ok, I can control this, but what is the correct behavior?

  1. Do not allow image to leave anything off the screen?
  2. Do not allow the image to exit more than 50% of the screen?

scrlkx avatar Mar 05 '19 00:03 scrlkx

Check out this example: Moving range limit.

fengyuanchen avatar Oct 05 '22 12:10 fengyuanchen