Cool stuff! haven't thought of a use for this yet, but maybe i'll find one later.
- I'm using a mighty mouse, which has a 2D mousewheel. Just looking through your code, is this supported by the GetEventParameter function (there's 2 zero's there)? Maybe a second outlet?
- Wouldn't it make more sense to only bind one window to your object at the same time? That way, you could use multiple instances of the ol.mousewheel object, dispose of unwanted event handlers etc. Seems to me like a more flexible solution.
For me, when i bind to a window, it always stays bound, even if i also bind another window. Seems like unbinding something doesn't always work...
After some trying out, everything works fine as long as you only bind one window at a time. When you bind two windows, it becomes impossible to unbind one of them, or sometimes even both. Do you get the same thing?
The jitterwindow mode work also for me with TwoFingersTrackpading on MBPro ! The 2D mousewheel of the mighty mouse also work ! (knowing the lateral precision of mighty mouse is in fact only -1,+1, far behind the MBP Trackpad.)
..But the non-jitterwindow mode is just silent with all my mouses.
Is it because of my "USBoverdrive" mouse driver ? (that i use to make my PC mouse work on mac)
The binding issue seems to be OK here on XP, you do have to have whatever window frontmost. It still grabs when you're outside the window, as long as it's still active (you can be over other app windows in the background, before any clicking). And you can have several windows bound, but only one works at a time, the frontmost/active. Very cool.
On XP at least, if you hold Alt, you don't get a special modifier number, which is fine. BUT, once you release Alt, you go into the "underline mode" of the menu bar, and the wheel is no longer picked up until you click somewhere. That seems to make some sense, as your menu bar is then active for keyboard etc. commands, but what's a little weird is that even jit.windows (with no menus available) show the same behavior. Really, no big deal, just don't have Alt be a modifier for the user... besides, Shift and Control work just fine, each with their own modifier value, so they're more useful anyways. I imagine Option on Mac probably doesn't do this.
Great, great stuff... really want to put this into effect with camera zoom in GL land, it's perfect for that and a lot more!