From 19aaa3162a97374cd2c411e7d723cdfcc4de2438 Mon Sep 17 00:00:00 2001 From: Michael Nielsen Date: Thu, 10 Jul 2014 14:26:58 +0200 Subject: [PATCH] Firefox mobile browser doesn't use window.event. So changed the code to use the local event variable instead --- js/Graph.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/Graph.js b/js/Graph.js index 5a88f9f1..faaa33a6 100644 --- a/js/Graph.js +++ b/js/Graph.js @@ -513,7 +513,7 @@ Graph.prototype = { touchendHandler = _.bind(function (e) { touchend = true; E.stopObserving(document, 'touchend', touchendHandler); - E.fire(el, 'flotr:mouseup', [event, this]); + E.fire(el, 'flotr:mouseup', [e, this]); this.multitouches = null; if (!movement) { @@ -530,7 +530,7 @@ Graph.prototype = { this.multitouches = e.touches; } - E.fire(el, 'flotr:mousedown', [event, this]); + E.fire(el, 'flotr:mousedown', [e, this]); this.observe(document, 'touchend', touchendHandler); }, this)); @@ -548,7 +548,7 @@ Graph.prototype = { this.multitouches = e.touches; } else { if (!touchend) { - E.fire(el, 'flotr:mousemove', [event, pos, this]); + E.fire(el, 'flotr:mousemove', [e, pos, this]); } } this.lastMousePos = pos;