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

Error when draggable point is clicked #55

Open
ghost opened this issue Jun 13, 2016 · 3 comments
Open

Error when draggable point is clicked #55

ghost opened this issue Jun 13, 2016 · 3 comments
Labels

Comments

@ghost
Copy link

ghost commented Jun 13, 2016

When the user clicks on a point that has been defined as draggable, the following error is produced:
draggable-points.js:96 Uncaught TypeError: Cannot set property 'dragStart' of undefined

@pawelfus pawelfus added the bug label Jun 14, 2016
@pawelfus
Copy link

Demo for the issue: http://jsfiddle.net/highcharts/AyUbx/ (official one). Issue comes from this line. I think there should be else case to return an empty point, or simply define newPos = {} here.

@ghost
Copy link
Author

ghost commented Jun 14, 2016

Here's a patch that solves the issue by checking for the state of the point inside the event handlers (I had to zip it as github apparently doesn't support .patch extension).
diff.zip

@meng-du
Copy link
Contributor

meng-du commented Jun 17, 2016

I think this should have been fixed by PR #54 (merged)

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

No branches or pull requests

2 participants