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

Issue 2456004: Adding zoom on scrollwheel event to Pool demo. (Closed)

Created:
10 years, 6 months ago by luchen
Modified:
9 years, 7 months ago
CC:
o3d-review_googlegroups.com
Visibility:
Public.

Description

Adding handlers to zoom in/out on scrollwheel event. Questions: - Is deltaY the correct field in which to store this event value? - Is the 'wheel' addEventListener hook broken in the first place? Doesn't work for me on OSX, but might be working in Windows/Linux and don't know if this change would break it for those. - It is necessary to cancel event bubbling for the onmousewheel event? Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=49305

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 2

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Patch Set 11 : '' #

Patch Set 12 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -8 lines) Patch
M samples/o3d-webgl-samples/pool.html View 1 2 3 4 5 6 7 8 9 3 chunks +20 lines, -2 lines 0 comments Download
M samples/o3d-webgl-samples/texturesamplers.html View 1 chunk +0 lines, -2 lines 0 comments Download
M samples/o3d-webgl/client.js View 1 2 3 4 5 6 7 8 9 3 chunks +27 lines, -4 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
luchen
10 years, 6 months ago (2010-06-02 00:05:29 UTC) #1
petersont
Brilliant change. deltaY is correct, and I think I recall that the different behavior of ...
10 years, 6 months ago (2010-06-02 01:27:46 UTC) #2
luchen
+kbr to reviewer list; seeking feedback on event propagation: should mousewheel events in webgl context ...
10 years, 6 months ago (2010-06-02 01:49:13 UTC) #3
Ken Russell (switch to Gerrit)
On 2010/06/02 01:49:13, luchen wrote: > +kbr to reviewer list; seeking feedback on event propagation: ...
10 years, 6 months ago (2010-06-02 22:32:20 UTC) #4
luchen
That's the current behavior: your custom callback will fire, in addition to the page scrolling ...
10 years, 6 months ago (2010-06-04 22:00:09 UTC) #5
Ken Russell (switch to Gerrit)
I can't imagine a situation where if you had a scroll event handler installed that ...
10 years, 6 months ago (2010-06-04 22:08:53 UTC) #6
luchen
Good point. The O3D plugin implementation cancels the scroll event automatically for you, so I ...
10 years, 6 months ago (2010-06-08 18:31:38 UTC) #7
Ken Russell (switch to Gerrit)
LGTM
10 years, 6 months ago (2010-06-08 18:34:30 UTC) #8
petersont
10 years, 6 months ago (2010-06-09 19:01:03 UTC) #9
LGTM.

Powered by Google App Engine
This is Rietveld 408576698