Fengyuan Chen
Fengyuan Chen
Good job, but still have some problems: 1. Cannot move to the edge when zooming out 200% or larger. 2. Test cases for the new options. 3. Usage documentation for...
As of v.1.9.0, you can use the `move` event to limit the moving range, here is an example: https://fengyuanchen.github.io/viewerjs/examples/moving-range-limit.html
Yes, the moving range limitation should be the default behavior but can be off if the user wants, so a new option defaults to `true` will be good.
In the given example, it will move the image into view if it is invisible after zoomed out now.
Thank you for the suggestions.
What are you mean?
@eliblanco87 I see, thanks.
可以尝试在图片显示后调用 `zoomTo` 方法改变图片大小。
Check out this example: [Moving range limit](https://fengyuanchen.github.io/viewerjs/examples/moving-range-limit.html).