Results 128 comments of Fengyuan Chen

You can override the navbar's style to enlarge the thumbnails.

1. When calling the `zoom` or `rotate` methods, the zoom / rotate center is the center of the canvas (image wrapper). 2. When zoom by wheel or touch, the zoom...

Not support that.

你是不是把**控制台/网络/禁用缓存**选项给钩上了?

以目前的架构,即使 `navbar` 设为 `false`,也只是将其隐藏,里面的图片列表虽然不可见,但是依然还是存在的。在不禁用缓存的情况下,问题不大;一旦禁用缓存,确实会造成多一次的图片加载,确实还有待优化。

@vinstics 同一张图片?第一次加载失败?第二次加载失败?

@vinstics - 问题1:可能需要重构 Viewer.js - 问题2:没有加载效果,可能是因为图片已经加载完成,并在浏览器中缓存,再次加载时是瞬间完成,加载效果就肉眼看不见了。 - 问题3:内部加载失败时确实需要跑出错误。

感谢建议,如果将来进行重构我会考虑的。

You can override it by the `zoom` event: ```js new Viewer(image, { zoom(event) { if (event.detail.originalEvent) { event.preventDefault(); this.viewer.zoomTo(event.detail.ratio); } } }); ```