taro-react-echarts
taro-react-echarts copied to clipboard
fix: weapp touch event issues-31
你好,首先很感谢你提交的修改建议,实践中dataZoom可以生效。 但是在饼图中发现问题:点击时饼图不能突出显示了。 之后发现是touchStart方法中的以下注释代码导致: (touchStart方法中的以下这段不能注掉)
handler.dispatch('mousemove', {
zrX: touch.x,
zrY: touch.y,
preventDefault: () => {},
stopImmediatePropagation: () => {},
stopPropagation: () => {},
})
你好,首先很感谢你提交的修改建议,实践中dataZoom可以生效。 但是在饼图中发现问题:点击时饼图不能突出显示了。 之后发现是touchStart方法中的以下注释代码导致: (touchStart方法中的以下这段不能注掉)
handler.dispatch('mousemove', { zrX: touch.x, zrY: touch.y, preventDefault: () => {}, stopImmediatePropagation: () => {}, stopPropagation: () => {}, })
我这里反复测试dataZoom 无法拖动和正常缩放, 原因是 touchMove 中触发 mousedown