The mouse_wheel event triggers always twice in Firefox. IE7 fires
correctly only one event. Find below a simple test case. Can anybody
confirm this behavior and maybe a workaround?
Thanks,
Marc
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
addedToStage="addedToStageHandler(event)">
<mx:Script>
<![CDATA[
private function addedToStageHandler(event:Event): void
{
stage.addEventListener(MouseEvent.MOUSE_WHEEL,
mouseWheelHandler)
}
private var lastTimeWheel:Number = 0
private function
mouseWheelHandler(mouseEvent:MouseEvent): void
{
var now:Number = new Date().getTime()
trace("delta: " + mouseEvent.delta +
"\tmillis: " +
(now-lastTimeWheel).toString())
lastTimeWheel = now
}
]]>
</mx:Script>
</mx:Application>
Compiled with Flex 3.2 including HTML-wrapper. It also happens with
static swfobject wrapper.