Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(109)

Unified Diff: remoting/webapp/crd/js/desktop_connected_view.js

Issue 923013004: Use offsetX and offsetY to position the fake mouse cursor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/crd/js/desktop_connected_view.js
diff --git a/remoting/webapp/crd/js/desktop_connected_view.js b/remoting/webapp/crd/js/desktop_connected_view.js
index e4ce2acb0dab98ad18634aca4358d2bf88b58172..0a14b08e267adaeef50a464dc50bbd6841ac3f63 100644
--- a/remoting/webapp/crd/js/desktop_connected_view.js
+++ b/remoting/webapp/crd/js/desktop_connected_view.js
@@ -79,8 +79,8 @@ remoting.DesktopConnectedView = function(session, container, host, mode,
var img = this.mouseCursorOverlay_;
/** @param {Event} event @private */
this.updateMouseCursorPosition_ = function(event) {
- img.style.top = event.y + 'px';
- img.style.left = event.x + 'px';
+ img.style.top = event.offsetY + 'px';
+ img.style.left = event.offsetX + 'px';
};
/** @type {number?} @private */
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698