svg.panzoom.js icon indicating copy to clipboard operation
svg.panzoom.js copied to clipboard

pan and pinch zoom has BUG in touch device,不能移动,缩放有误差

Open GuoSirius opened this issue 6 years ago • 0 comments

所用到的代码版本:

image

有关 拖拽 的修复:

image

image

所有的鼠标事件 movedown mousemove mouseup 会动态根据设备类型进行 touchstart touchmove touchend 替换。

有关 缩放 的问题尚未找到原因:

image

现象是:直接在根 svg 元素上使用 panZoom 时,鼠标设备缩放不会有偏移,触屏设备偏移很严重。

已修复的代码已提交,pull request。

GuoSirius avatar Aug 29 '19 10:08 GuoSirius