[Laszlo-checkins] r13647 - openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9

hqm@openlaszlo.org hqm at openlaszlo.org
Thu Apr 9 12:35:38 PDT 2009


Author: hqm
Date: 2009-04-09 12:35:37 -0700 (Thu, 09 Apr 2009)
New Revision: 13647

Modified:
   openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzMouseKernel.as
Log:
Change 20090409-hqm-f by hqm at badtzmaru.home on 2009-04-09 15:31:36 EDT
    in /Users/hqm/openlaszlo/trunk7/WEB-INF/lps/lfc
    for http://svn.openlaszlo.org/openlaszlo/trunk/WEB-INF/lps/lfc

Summary:  this file should have gone in with r13639

New Features:

Bugs Fixed: LPP-4542

Technical Reviewer: ptw (pending)
QA Reviewer: (pending)
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:
    
+ add code to generate an onmouseenter event to swf9 mouse kernel

Tests:



Modified: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzMouseKernel.as
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzMouseKernel.as	2009-04-09 19:13:35 UTC (rev 13646)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzMouseKernel.as	2009-04-09 19:35:37 UTC (rev 13647)
@@ -69,12 +69,26 @@
         } else {
             if (__mouseLeft) {
                 __mouseLeft = false;
+                // Mouse reentered the app.
                 if (event.buttonDown) __mouseUpOutsideHandler();
+
+                // TODO [hqm 2009-04] LPP-7957 -- this works
+                // around Firefox bug; if you are making a text
+                // selection, and then drag the mouse outside of
+                // the app while the left button is down, and then
+                // release it. When you bring the mouse back into
+                // the app, the selection is stuck dragging
+                // because Flash plugin never gets the mouse up.
+                LFCApplication.stage.focus = null;
+
+                // generate a 'onmouseenter' event
+                __sendEvent(null, 'onmouseenter');
             }
             __sendEvent(null, eventname);
         }
     }
 
+
     // sends mouseup and calls __globalmouseup when the mouse goes up outside the app - see LPP-7724
     static function __mouseUpOutsideHandler () :void {
         if (__lastMouseDown != null) {



More information about the Laszlo-checkins mailing list