forked from ecomfe/echarts-for-weixin
-
Notifications
You must be signed in to change notification settings - Fork 91
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
柱状图一点就消失了 #15
Comments
原库就有这个问题,我再排查下,不行就得等他们更新了 ecomfe#218 |
disableTouch=false禁用了触摸事件好了 |
和触摸事件肯定是有关,但是也不能直接禁用了 |
touchmove 事件做了去抖处理后基本不会出现那个问题了,你可以试下效果 // src/echarts.vue
touchMove(e) {
if (!this.disableTouch && chart && e.mp.touches.length > 0) {
const touch = e.mp.touches[0];
if (this.timer) clearTimeout(this.timer);
this.timer = setTimeout(() => {
chart._zr.handler.dispatch('mousemove', {
zrX: touch.x,
zrY: touch.y,
});
console.log(touch.x, touch.y)
}, 30)
}
}, |
更新最新版(v0.2.5)后,给柱状图设置 <mpvue-echarts :echarts="echarts" :onInit="onInit" throttleTouch /> |
ok,多谢 |
This issue was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
柱状图一点就消失了,再点击出来了,经常闪烁
The text was updated successfully, but these errors were encountered: