Last active
December 16, 2015 10:08
-
-
Save davidahopp/5417465 to your computer and use it in GitHub Desktop.
This is a workaround for the issue reported here https://github.com/highslide-software/highcharts.com/issues/1551
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var _this = this; | |
chart_options = { | |
chart:{}, | |
plotOptions:{}, | |
series:{ | |
cursor: 'pointer', | |
point: { | |
events: { | |
click: function() { | |
// do your awesome magic here | |
}, | |
mouseOver: function(){ | |
if('ontouchstart' in document.documentElement){ | |
_this.touch_count += 1 | |
if(_this.touch_count % 2 == 0){ // the mouseover decides to send a double event, so you use the first | |
_this.touch_count = 0 | |
// do your awesome magic here | |
} | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment