-
Notifications
You must be signed in to change notification settings - Fork 19.6k
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
tooltip 在微信或QQ浏览器里滑动时会有卡顿的情况 #3900
Comments
我看了源码: `touchmove: function (event) {
增加一行 event.preventDefault(); 就好很多了。 |
@xmchyabi 加了preventDefault之后,在移动端浏览器里页面不能滚动。有更好的解决办法么? |
@100pah 改完之后移动端里稍微大点的图表彻底划不动了 |
@jialanmo |
@jialanmo 我目前的解决办法是:利用touchStart, touchMove事件判断手指在水平、垂直方向上的滑动幅度,如果水平幅度>垂直幅度,则调动preventDefault阻止浏览器处理垂直滚动事件。 |
问题简述 (One-line summary)
折线图表,启用tooltip后,在微信或QQ浏览器上滑动时会有卡顿的情况,比如手指头都移到右边了,但是cross 线还仍在左边,手指松开后,cross线会跳到右边去
数据量不大,在手机自带的浏览器上safari滑动是流畅的,不知道有没有朋友遇到这个问题?
期待能得到大家的帮助,谢谢!
版本及环境 (Version & Environment)
WeChat 6.3.23
QQ 6.5.3.410
ECharts配置项 (ECharts option)
其他信息 (Other comments)
代码参考
http://echarts.baidu.com/demo.html#dynamic-data2
The text was updated successfully, but these errors were encountered: