Packageardisia.browser
Classpublic class SafariMouseWheelFix
InheritanceSafariMouseWheelFix Inheritance flash.events.EventDispatcher

Adds mouse wheel support to the Safari Web Browser. For all other browsers, the logic contained within this component will be ignored.

To use, simply initialize in <fx:Declarations> or in actionscript before the FlexEvent.ApplicationEvent event fires.

The MOUSE_WHEEL event dispatched by this class does not contain accurate keyDown, buttonDown data. However, stage positioning is correct.



Protected Properties
 PropertyDefined By
  CHECK_TEST_ID_CALLBACK : String = checkTestIdCallback
SafariMouseWheelFix
  MOUSE_WHEEL_CALLBACK : String = mouseWheelCallback
SafariMouseWheelFix
Public Methods
 MethodDefined By
  
SafariMouseWheelFix
Protected Methods
 MethodDefined By
  
eventHandler(event:Event):void
Handles events on the component.
SafariMouseWheelFix
  
isTestId(testString:String):Boolean
Called by the browser in javascript.
SafariMouseWheelFix
  
mouseWheelUpdate(delta:Number):void
Called by javascript on mouseWheel events on the browser.
SafariMouseWheelFix
Property Detail
CHECK_TEST_ID_CALLBACKproperty
protected var CHECK_TEST_ID_CALLBACK:String = checkTestIdCallback

MOUSE_WHEEL_CALLBACKproperty 
protected var MOUSE_WHEEL_CALLBACK:String = mouseWheelCallback

Constructor Detail
SafariMouseWheelFix()Constructor
public function SafariMouseWheelFix()



Method Detail
eventHandler()method
protected function eventHandler(event:Event):void

Handles events on the component.

Parameters

event:Event — the Event that triggered the handler

isTestId()method 
protected function isTestId(testString:String):Boolean

Called by the browser in javascript. Tests whether the passed string is the test string.

Parameters

testString:String — the string to test against

Returns
Boolean — true on success
mouseWheelUpdate()method 
protected function mouseWheelUpdate(delta:Number):void

Called by javascript on mouseWheel events on the browser.

Parameters

delta:Number — Number