ecomfe / echarts-for-weixin

基于 Apache ECharts 的微信小程序图表库

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

手势缩放图表报错

cllee1214 opened this issue · comments

简单描述问题:

版本:5.4.2
环境:原生微信小程序

错误:
t.preventDefault is not a function

我用的geo:{roam:true},把echarts.js中的 t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0 改为 t.preventDefault && t.preventDefault(),t.stopPropagation && t.stopPropagation(),t.cancelBubble=!0 就好了,缩放移动都能用

commented

我也遇到了同样的问题,双指操作地图放大缩小会有问题,如何在ec-canvas.js中注入该方法呢

是不是版本v5.4.X,双指缩放或放大都有问题