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

Unified Diff: remoting/webapp/crd/js/client_session.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: 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/client_session.js
diff --git a/remoting/webapp/crd/js/client_session.js b/remoting/webapp/crd/js/client_session.js
index 1f396925bc505a342fcfbe5c9e6b4b42634cc514..2a530959379a58103f284d98b92cbee26ec0dd08 100644
--- a/remoting/webapp/crd/js/client_session.js
+++ b/remoting/webapp/crd/js/client_session.js
@@ -176,8 +176,8 @@ remoting.ClientSession = function(signalStrategy, container, hostDisplayName,
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';
kelvinp 2015/02/20 21:46:22 Is this ToT? This function has been moved to desk
Jamie 2015/02/20 22:46:03 No, I was behind. Thanks for the heads-up.
+ img.style.left = event.offsetX + 'px';
};
/** @type {remoting.GnubbyAuthHandler} @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