aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEhsan Akhgari <ehsan.akhgari@gmail.com>2012-01-25 00:03:51 -0500
committerEhsan Akhgari <ehsan.akhgari@gmail.com>2012-01-25 00:03:51 -0500
commit154c4b63f1876e2bcb73fa456b69c7e00795af66 (patch)
treea63721df3d4130ccb73a362a2151c6735173c968
parent341d6a705ef217700dfe12a8c5fce6b0952f8cb9 (diff)
Fix the mouse coordinates with the Closure compiler
-rw-r--r--src/library_gl.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library_gl.js b/src/library_gl.js
index 3c2e1585..fd4d14b2 100644
--- a/src/library_gl.js
+++ b/src/library_gl.js
@@ -411,8 +411,8 @@ var LibraryGLUT = {
lastY: 0,
onMousemove: function(event) {
- GLUT.lastX = event.clientX;
- GLUT.lastY = event.clientY;
+ GLUT.lastX = event['clientX'];
+ GLUT.lastY = event['clientY'];
},
onKeypress: function(event) {