Skip to content

Instantly share code, notes, and snippets.

@davidahopp
Last active December 16, 2015 10:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidahopp/5417465 to your computer and use it in GitHub Desktop.
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
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