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

v.2.0-dev "Uncaught TypeError: Cannot read property 'clientX' of undefined" #1587

Closed
JustinXinLiu opened this issue Oct 28, 2015 · 2 comments
Assignees

Comments

@JustinXinLiu
Copy link

When you open any chart in Chrome and have device mode enabled, tapping/clicking on the chart will give you this error -

Uncaught TypeError: Cannot read property 'clientX' of undefined.

The error occurs in this method helpers.getRelativePosition.

if (e.touches) {
    mouseX = e.touches[0].clientX - boundingRect.left;
    mouseY = e.touches[0].clientY - boundingRect.top;
@etimberg
Copy link
Member

etimberg commented Nov 1, 2015

This appears to be the case when a touchend event fires

@etimberg
Copy link
Member

Fixed in #1644

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

No branches or pull requests

2 participants