onmousewheel events not being trapped on IE with MouseWheelHandler #217

Open
pyjsorg opened this Issue Apr 27, 2012 · 1 comment

Comments

Projects
None yet
1 participant
Contributor

pyjsorg commented Apr 27, 2012

What steps will reproduce the problem?

  1. Use MouseWheelHandler class to capture and process mouse wheel events
  2. Events are received using FireFox, Safari, Chrome, but not IE

I believe the problem is simply that the IE implementation of sinkEvents() doesn't handle the mousewheel event. The following patch seems to fix the problem:

--- a/library/ie6/pyjamas/DOM.py
+++ b/library/ie6/pyjamas/DOM.py
@@ -231,6 +231,7 @@ def sinkEvents(elem, bits):
@{{elem}}.onload = (@{{bits}} & 0x08000) ? $wnd.__dispatchEvent:null;
@{{elem}}.onerror = (@{{bits}} & 0x10000) ? $wnd.__dispatchEvent:null;
@{{elem}}.oncontextmenu = (@{{bits}} & 0x20000) ? $wnd.__dispatchEvent:null;
+@{{elem}}.onmousewheel = (@{{bits}} & 0x40000) ? $wnd.__dispatchEvent:null;
""")

Original issue: http://code.google.com/p/pyjamas/issues/detail?id=502 (October 13, 2010 22:26:32)

Contributor

pyjsorg commented Apr 27, 2012

From cornelis...@gmail.com on October 30, 2010 10:07:34:
Note: this is already committed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment