Skip to content

Commit

Permalink
Try to fix canvas dragging on touch screen devices, see philogb/jit#166
Browse files Browse the repository at this point in the history
  • Loading branch information
Photon89 committed Apr 30, 2018
1 parent 109e3cc commit 9f02ad1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions JIT/includes/jit.js
Original file line number Diff line number Diff line change
Expand Up @@ -1881,13 +1881,13 @@ var MouseEventsManager = new Class({
that.handleEvent('MouseOut', e, win, that.makeEventObject(e, win));
},
'touchstart': function(e, win) {
that.handleEvent('TouchStart', e, win, that.makeEventObject(e, win));
that.handleEvent('MouseDown', e, win, that.makeEventObject(e, win));
},
'touchmove': function(e, win) {
that.handleEvent('TouchMove', e, win, that.makeEventObject(e, win));
that.handleEvent('MouseMove', e, win, that.makeEventObject(e, win));
},
'touchend': function(e, win) {
that.handleEvent('TouchEnd', e, win, that.makeEventObject(e, win));
that.handleEvent('MouseUp', e, win, that.makeEventObject(e, win));
}
});
//attach mousewheel event
Expand Down

0 comments on commit 9f02ad1

Please sign in to comment.