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

Unified Diff: samples/o3d-webgl-samples/texturesamplers.html

Issue 2456004: Adding zoom on scrollwheel event to Pool demo. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: '' Created 10 years, 6 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 | « samples/o3d-webgl-samples/pool.html ('k') | samples/o3d-webgl/client.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/o3d-webgl-samples/texturesamplers.html
===================================================================
--- samples/o3d-webgl-samples/texturesamplers.html (revision 49133)
+++ samples/o3d-webgl-samples/texturesamplers.html (working copy)
@@ -74,8 +74,6 @@
function scrollMe(e) {
g_eye = g_math.mulScalarVector((e.deltaY < 0 ? 11 : 13) / 12, g_eye);
g_viewInfo.drawContext.view = g_math.matrix4.lookAt(g_eye, g_target, g_up);
- // Prevents event from reaching up to the window, e.g. so page will not scroll
- o3djs.event.cancel(e);
}
/**
« no previous file with comments | « samples/o3d-webgl-samples/pool.html ('k') | samples/o3d-webgl/client.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698