summaryrefslogtreecommitdiffstats
path: root/o3d/samples
diff options
context:
space:
mode:
authorluchen@google.com <luchen@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-29 20:42:26 +0000
committerluchen@google.com <luchen@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-29 20:42:26 +0000
commitb684b2b2609deade4eeb7bf8cae138c887bcfdec (patch)
tree85a4df8e3c981d721166b52e205b027d01998a61 /o3d/samples
parent210e6513fc9ddbf0538bcee31f9a9a3f581902fd (diff)
downloadchromium_src-b684b2b2609deade4eeb7bf8cae138c887bcfdec.zip
chromium_src-b684b2b2609deade4eeb7bf8cae138c887bcfdec.tar.gz
chromium_src-b684b2b2609deade4eeb7bf8cae138c887bcfdec.tar.bz2
Review URL: http://codereview.chromium.org/2884048
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54184 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'o3d/samples')
-rw-r--r--o3d/samples/o3d-webgl/client.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/o3d/samples/o3d-webgl/client.js b/o3d/samples/o3d-webgl/client.js
index 3fd450f..d003701 100644
--- a/o3d/samples/o3d-webgl/client.js
+++ b/o3d/samples/o3d-webgl/client.js
@@ -854,7 +854,7 @@ o3d.Client.getAbsolutePosition_ = function(element) {
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};
};