I put in an explicit check to only register once

 static function __mouseMoveHandler (ignore:*) {
        // LPP-9916
        // handle mouse move events on the idle task, to avoid
        // falling behind in rendering
        if (! __mouseMoved) {
            LFCApplication.stage.addEventListener(Event.ENTER_FRAME,
__mouseMovedFrameHandler);
        }
        __mouseMoved = true;
    }


I checked in the change in r19117

go ahead and check in your fix to html.lzx, and lets see if it helps the
production bug


On Mon, Apr 25, 2011 at 6:05 PM, Henry Minsky <[email protected]>wrote:

> Hmm good question, i think it only adds it once, but I'll check
>
>
> On Mon, Apr 25, 2011 at 5:38 PM, P T Withington <[email protected]>wrote:
>
>> Question:  Is the swf runtime smart enough to only add the
>> mouseMovedFrameHandler once?  Or should you only add the handler if the
>> __mouseMoved flag is false?
>>
>> On 2011-04-25, at 17:13, Henry Minsky wrote:
>>
>> > Change hqm-20110425-wyc by [email protected] on 2011-04-25 12:19:05
>> EDT
>> >    in /Users/hqm/openlaszlo/trunkd2
>> >    for http://svn.openlaszlo.org/openlaszlo/trunk
>> >
>> > Summary: send just one mouse move event per idle frame
>> >
>> > New Features:
>> >
>> > Bugs Fixed: LPP-9916
>> >
>> > Technical Reviewer: ptw
>> > QA Reviewer: (pending)
>> > Doc Reviewer: (pending)
>> >
>> > Documentation:
>> >
>> > Release Notes:
>> >
>> > Overview:
>> >
>> >
>> > Details:
>> >
>> > When flash reports a mouse move event , set a flag and listener for the
>> enter-frame event, rather than sending it on to the LFC.
>> >
>> > The enter-frame handler guarantees to send at most one mouse move event
>> to lfc per frame.
>> >
>> >
>> >
>> > Tests:
>> >
>> >
>> > Files:
>> >
>> > M       WEB-INF/lps/lfc/kernel/swf9/LzMouseKernel.as
>> >
>> > Changeset:
>> http://svn.openlaszlo.org/openlaszlo/patches/hqm-20110425-wyc.tar
>>
>>
>>
>
>
> --
> Henry Minsky
> Software Architect
> [email protected]
>
>
>


-- 
Henry Minsky
Software Architect
[email protected]

Reply via email to