EMAIL: info@ardisialabs.com
Contact envelope

SafariMouseWheelFix

Overview

The SafariMouseWheelFix class fixes the lack of mouse wheel support for Flex content running within the Safari Web Browser.

Using the SafariMouseWheelFix

To use, simply add an instance of the class to the fx:Declarations tag or initialize in Actionscript. If the content is not being run within the Safari browser, then the logic in the class will be simply ignored.

In MXML:

<fx:Declarations >
	<ardisia:SafariMouseWheelFix />
</fx:Declarations;/>

In Actionscript:

<s:Application initialize="new SafariMouseWheelFix()" >

It really is that simple.

Limitations

The principal limitation is that the MouseEvent will not pass accurate values for the properties that pertain to whether certain keys or the mouse buttons are down. Specifically the following properties on the MouseEvent:

  • altKey
  • buttonDown
  • commandKey
  • controlKey
  • ctrlKey
  • shiftKey

If it is important that your software know if a key or button was down while the wheel was interacted with, you cannot rely on the MouseEvent. Instead, custom keyDown/buttonDown listeners should be added.

Back To Top