Skip to content

Commit

Permalink
Firefox mobile browser doesn't use window.event. So changed the code …
Browse files Browse the repository at this point in the history
…to use the local event variable instead
  • Loading branch information
K0den committed Jul 10, 2014
1 parent b4caee3 commit 19aaa31
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/Graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -530,7 +530,7 @@ Graph.prototype = {
this.multitouches = e.touches;
}

This comment has been minimized.

Copy link
@maruiliangjava

maruiliangjava Apr 24, 2019

444

E.fire(el, 'flotr:mousedown', [event, this]);
E.fire(el, 'flotr:mousedown', [e, this]);
this.observe(document, 'touchend', touchendHandler);
}, this));

Expand All @@ -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;
Expand Down

0 comments on commit 19aaa31

Please sign in to comment.