Skip to content
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

应用官方echarts.js Touch事件报错 #4

Closed
EngMJ opened this issue Apr 16, 2018 · 2 comments
Closed

应用官方echarts.js Touch事件报错 #4

EngMJ opened this issue Apr 16, 2018 · 2 comments

Comments

@EngMJ
Copy link

EngMJ commented Apr 16, 2018

   ...,
   touchStart(e) {
      if (chart && e.mp.touches.length > 0) {
        const touch = e.mp.touches[0];
        // 此处将zr属性改为_zr, 否则为undefined
        chart._zr.handler.dispatch('mousedown', {
          zrX: touch.x,
          zrY: touch.y,
        });
        chart._zr.handler.dispatch('mousemove', {
          zrX: touch.x,
          zrY: touch.y,
        });
      }
    },
    ....

不知道是不是个例,希望作者可以看一下. 谢谢!

@F-loat
Copy link
Owner

F-loat commented Apr 18, 2018

抱歉,之前没看到,报错信息可以贴一下,明天我复查下

@F-loat F-loat closed this as completed in 18173cd Apr 18, 2018
@F-loat
Copy link
Owner

F-loat commented Apr 18, 2018

应该修复了已经,请更新下版本

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants