Skip to content

Commit

Permalink
Fix #26
Browse files Browse the repository at this point in the history
  • Loading branch information
phoboslab committed Feb 4, 2016
1 parent 25cd113 commit f3b7fdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/jsmpg-vnc.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ var sendMouse = function(ev, action) {
var p = ev.changedTouches ? ev.changedTouches[0] : ev;

// FUCK, DID I MENTION I LOOOOOVE VENDOR PREFIXES? SO USEFUL!
x = p.movemenX || p.mozMovementX || p.webkitMovementX;
y = p.movemenY || p.mozMovementY || p.webkitMovementY;
x = p.movementX || p.mozMovementX || p.webkitMovementX;
y = p.movementY || p.mozMovementY || p.webkitMovementY;

if( typeof x === 'undefined' ) {
x = p.clientX - lastMouse.x;
Expand Down

0 comments on commit f3b7fdf

Please sign in to comment.