Contents
- Usage
- Using the Library
- Using the Themes
- Using the Demo App
- Components
- Accordion
- AnimatedImage
- AutoComplete
- AutoFitText
- BarCode
- BitmapAdjustments
- ButtonBar
- Calculator
- Calendar
- CAPTCHA
- CarouselLayout
- CarouselList
- Clocks
- Colorizer
- ColorPicker
- ColorSpacePicker
- CompassContainer
- CoverflowLayout
- CoverflowList
- CursorManager
- DatePicker
- DockingCompassContainer
- Donut Chart
- ExpandingContainer
- FieldSet
- Filters
- FlexContextMenu
- FloatPaneControlBar
- Funnel Chart
- GraphicsEditor
- Heatmap
- HtmlDragDrop
- HtmlFrame
- HtmlGeolocation
- iCalendarParser
- iCalendarRecurrence
- IconButton
- Linear Gauges
- Magnifier
- Menu and MenuBar
- MiniViewport
- PackedLayout
- PackedList
- Pane
- PopUpButton
- ProgressDisplay
- Radar
- Radial Gauge
- Rating
- ReflectionContainer
- RichTextEditor
- RotaryField
- SafariMouseWheelFix
- Scroller
- Separators
- SliderField
- Sparklines
- TabPaneNavigator
- TextInput
- TimebarContainer
- Timeline
- TimeMachineLayout
- TimeMachineList
- TimePicker
- ToggleSwitchDesktop
- TransformContainer
- TreeMap
- ViewStack
- WheelList
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