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

Unified Diff: samples/o3d-webgl/client.js

Issue 2884048: Fix picking for Minefield (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: Created 10 years, 5 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: samples/o3d-webgl/client.js
===================================================================
--- samples/o3d-webgl/client.js (revision 54146)
+++ samples/o3d-webgl/client.js (working copy)
@@ -854,7 +854,7 @@
o3d.Client.getLocalXY_ = function(eventInfo) {
var event = eventInfo.event;
var p = o3d.Client.getAbsolutePosition_(eventInfo.element);
- return {x: event.x - p.x, y: event.y - p.y};
+ return {x: event.pageX - p.x, y: event.pageY - p.y};
};
« 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