Use offsetX and offsetY to position the fake mouse cursor.
commita19b19882cd9eff4696d0a081e6fc2f9b95f9c18
authorjamiewalch <jamiewalch@chromium.org>
Sat, 21 Feb 2015 00:42:08 +0000 (20 16:42 -0800)
committerCommit bot <commit-bot@chromium.org>
Sat, 21 Feb 2015 00:42:34 +0000 (21 00:42 +0000)
tree836907b5fee119d916d52720e030399a3f8421a2
parentf16d8d8d34fb9403852423df5adcf741b9bb8beb
Use offsetX and offsetY to position the fake mouse cursor.

The mouse cursor element is positioned relative to the document body (ie, ignoring
the title bar for apps v2). However, its position was being set using the x and y
coordinates of the mouse event, which are relative to the client viewport. This CL
fixes this, using offsetX/Y, which are relative to the target element.

BUG=410473

Review URL: https://codereview.chromium.org/923013004

Cr-Commit-Position: refs/heads/master@{#317447}
remoting/webapp/crd/js/desktop_connected_view.js