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

fix: weapp touch event issues-31 #32

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

FattySpring
Copy link

No description provided.

@FattySpring
Copy link
Author

issues-31

@ZerlinM
Copy link

ZerlinM commented Jul 12, 2023

issues-31

你好,首先很感谢你提交的修改建议,实践中dataZoom可以生效。
但是在饼图中发现问题:点击时饼图不能突出显示了。
之后发现是touchStart方法中的以下注释代码导致:
(touchStart方法中的以下这段不能注掉)

handler.dispatch('mousemove', {
      zrX: touch.x,
      zrY: touch.y,
      preventDefault: () => {},
      stopImmediatePropagation: () => {},
      stopPropagation: () => {},
    })

@FattySpring
Copy link
Author

issues-31 问题-31

你好,首先很感谢你提交的修改建议,实践中dataZoom可以生效。 但是在饼图中发现问题:点击时饼图不能突出显示了。 之后发现是touchStart方法中的以下注释代码导致: (touchStart方法中的以下这段不能注掉)

handler.dispatch('mousemove', {
      zrX: touch.x,
      zrY: touch.y,
      preventDefault: () => {},
      stopImmediatePropagation: () => {},
      stopPropagation: () => {},
    })

我这里反复测试dataZoom 无法拖动和正常缩放, 原因是 touchMove 中触发 mousedown

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 this pull request may close these issues.

2 participants