taro-react-echarts icon indicating copy to clipboard operation
taro-react-echarts copied to clipboard

fix: weapp touch event issues-31

Open FattySpring opened this issue 2 years ago • 3 comments

FattySpring avatar May 31 '23 01:05 FattySpring

issues-31

FattySpring avatar May 31 '23 01:05 FattySpring

issues-31

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

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

ZerlinM avatar Jul 12 '23 08:07 ZerlinM

issues-31 问题-31

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

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

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

FattySpring avatar Aug 02 '23 01:08 FattySpring