Skip to content

Commit

Permalink
Merge pull request #41 from drjohnnyfever1/master
Browse files Browse the repository at this point in the history
Fix mouse events in FF 53
  • Loading branch information
phoboslab authored May 10, 2017
2 parents e7e8c9d + 51ee119 commit 77642bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/jsmpg-vnc.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ var sendMouse = function(ev, action) {
var scaleX = canvas.width / (rect.right-rect.left),
scaleY = canvas.height / (rect.bottom-rect.top);

var p = event.changedTouches ? ev.changedTouches[0] : ev;
var p = ev.changedTouches ? ev.changedTouches[0] : ev;
var x = (p.clientX - rect.left) * scaleX,
y = (p.clientY - rect.top) * scaleY;
}
Expand Down

0 comments on commit 77642bc

Please sign in to comment.