viewerjs icon indicating copy to clipboard operation
viewerjs copied to clipboard

JavaScript image viewer.

Results 51 viewerjs issues
Sort by recently updated
recently updated
newest added

**Is your feature request related to a problem? Please describe.** Currently, the library enable users to zoom an image by wheel and touch event, and the zoom origin is depending...

``` width = Math.min(width * 0.9, naturalWidth); height = Math.min(height * 0.9, naturalHeight); ``` modal 模式下我想占满屏幕宽度,看了下源码这里似乎没法配置呀?除了改源码,或者手动 zoomTo (动画会有停顿一下的效果,不太理想),还有什么更好的方法?

enhancement

**Describe the bug** 偶现异常,图片不显示,请求是成功了的,去掉这2 个行内属性能看到图片,就是尺寸位置可能不太对劲。 **To Reproduce** 不能稳定复现 **Expected behavior** 如果宽高计算有问题,能让浏览器默认计算吗,就给个默认宽度或者高度,然后浏览器默认等比计算就行 **Screenshots** 见上图 **Desktop (please complete the following information):** - OS: macos - Browser chrome dev - Version 105.0.5137.4 **Additional...

很好的项目,感谢你的工作 **Describe the bug** 当我想要用viewerjs去显示图片合集时(无法预估数量,所以要尝试最大值1000张)。发现性能很差。 然后就分析了一下,发现,性能差完全是viewerjs设计问题+BUG,而不是我的需求--显示1000张图片不对。 **To Reproduce** Steps to reproduce the behavior: 1.创建1000张图片的合集 ```react {showlist.map((item) => ( ))} ``` 2.初始化viewjs ``` this.viewver = new Viewer(document.getElementById('images')!, {...}) ``` 3.点击幻灯片播放 **Expected...

enhancement

https://github.com/fengyuanchen/viewerjs/blob/465111e66e489cf3a68028fbb9a4da98a65c92de/src/js/methods.js#L1176

**Describe the solution you'd like** When data-source image link is down It should load thumb image to viewer. Is this possible? Thanks

enhancement

**Describe the bug** 一个照片,本身是歪的(拍摄完之后,是横向显示的),这时候放到插件里面,在笔记本上查看是正向显示的,在台式机是横向显示的(原本的样子),这会是什么问题呢。。。 注:这个原图就是歪的,因为用adb导出拍摄命令的时候有bug,导致拍出来的照片就是歪的。

![image](https://user-images.githubusercontent.com/24654210/110265767-4cf97a80-7ff7-11eb-889b-a5f97828dfb0.png) 感觉可以优化一下。 应该不是 navbar,我设为 false依然请求 2 次。 还有,左右切换图片时都会重新请求,这个应该没必要吧。。

enhancement

fixed #352 added edgeLimit option to limit move event out of screen/container. default edgeRatio is 0.5 which based on moveable image. **Summary** **What kind of change does this PR introduce?**...

**Describe the solution you'd like** It would be handy if you can scroll through the images. So you can use Ctrl + Scroll for zooming as known in the browser....

enhancement