Issues:

1) It might make sense to handle the mouse move at a lower level -- i.e., 
rather than after going through __mouseHandler and handleMouseEvent, just make 
a custom handler to set the flag.

2) Would it be more efficient to only queue the enterframe handler when you get 
a mouse move, rather than having it poll all the time?  And have it remove 
itself?  This is what we do in the idleKernel, so we don't suck up CPU doing 
nothing.


On 2011-04-25, at 12:25, 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: (pending)ptw
> QA Reviewer: (pending)
> Doc Reviewer: (pending)
> 
> Documentation:
> 
> Release Notes:
> 
> Overview:
> 
> 
> Details:
> 
> When flash reports a mouse move event , set a flag, rather than sending it on 
> to the LFC.
> 
> Set up a polling function which is run once every ENTER_FRAME event, which 
> checks if the
> mouse-moved flag is set, and send a single mousemove event to the LFC.
> 
> 
> Tests:
> 
> 
> Files:
> 
> M       WEB-INF/lps/lfc/kernel/swf9/LzMouseKernel.as
> 
> Changeset: http://svn.openlaszlo.org/openlaszlo/patches/hqm-20110425-wyc.tar


Reply via email to