By default Flex components do not scroll as you scroll using the wheel on your mouse. You can achieve this by writing a mouseWheel event handler, checked the delta value and scrolling up or down depending on whether it’s positive or negative.
But that does not work on Mac OS X.
The solution involves tracking mouse move events at browser level using JavaScript, and passing them to Flex. A handler in Flex will then scroll the application / component as you specify.
It works well! Except that you can only scroll one way – either vertically (as in the code above) or horizontally (by hacking the code above!)
Wish Flex supports this by default someday! Would really help!
What do you think? Do you use mouse wheel / track pad to scroll?
Hi, we created an commercial, but very easy to use, component that enables scrolling on Mac and Safari PC but also fixes some weird behavior on PC is available here at http://www.zillizi.com.
It doesn’t address diagonal scrolling though, which would very nice indeed.
Thanks a lot man. So much for Flex as a cross-browser platform!
Very Nice!
I have seen another solution in another website, but it is not in detail!
Using a JavaScript may be a good solution!
I just put up a post on how to enable trackpad/wheel scrolling on mac os for flex 4. Hope that’s useful : )
http://alekkus.com/blog/2010/03/flex-tutorial-enabling-track-pad-mouse-wheel-scrolling-on-mac-os-x-for-flex-4/
alekkus