Skip to content

Instantly share code, notes, and snippets.

View danielcrisp's full-sized avatar

Daniel Crisp danielcrisp

View GitHub Profile
@danielcrisp
danielcrisp / touch-tooltip-fix.js
Created August 22, 2014 12:50 — forked from marco-martins/touch-tooltip-fix.js
Updated to work with Highcharts v4
Highcharts.Chart.prototype.callbacks.push(function(chart) {
var hasTouch = hasTouch = document.documentElement.ontouchstart !== undefined,
mouseTracker = chart.pointer,
container = chart.container,
mouseMove;
mouseMove = function (e) {
// let the system handle multitouch operations like two finger scroll
// and pinching
if (e && e.touches && e.touches.length > 0) {