Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GuoSirius opened this issue Aug 29, 2019 · 0 comments

Comments

@GuoSirius
Copy link

所用到的代码版本:

image

有关 拖拽 的修复:

image

image

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

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

image

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

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

@GuoSirius GuoSirius mentioned this issue Aug 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant