mirari / v-viewer

Image viewer component for vue, supports rotation, scale, zoom and so on, based on viewer.js
https://mirari.cc/v-viewer/
MIT License
2.46k stars 292 forks source link

The problem of accidentally triggering a double-click event when swiping quickly #306

Closed yangBin0919 closed 1 month ago

yangBin0919 commented 8 months ago

When I slide the enlarged picture quickly, it will be recognized as a double-click event by this plug-in.

mirari commented 8 months ago

Perhaps you can pass toggleOnDblclick: false in options to turn off the double-click callback. https://github.com/fengyuanchen/viewerjs/blob/main/README.md#toggleondblclick