[Laszlo-checkins] r12772 - in openlaszlo/branches/4.2: . WEB-INF/lps/lfc/kernel/swf9
max@openlaszlo.org
max at openlaszlo.org
Fri Feb 6 19:39:50 PST 2009
Author: max
Date: 2009-02-06 19:39:48 -0800 (Fri, 06 Feb 2009)
New Revision: 12772
Modified:
openlaszlo/branches/4.2/
openlaszlo/branches/4.2/WEB-INF/lps/lfc/kernel/swf9/LzMouseKernel.as
Log:
Merged revisions 12771 via svnmerge from
http://svn.openlaszlo.org/openlaszlo/trunk
.......
r12771 | max | 2009-02-06 19:27:45 -0800 (Fri, 06 Feb 2009) | 16 lines
Change 20090206-maxcarlson-y by maxcarlson at Bank.local on 2009-02-06 19:03:11 PST
in /Users/maxcarlson/openlaszlo/trunk-clean
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: Send mouseup events when mouse goes up outside the app in swf9
Bugs Fixed: LPP-7724 - Mouse events behave wrong in opaque mode (FireFox)
Technical Reviewer: andre.bargull at udo.edu
QA Reviewer: hminsky
Details: Add mouseLeft flag to track whether the mouse left the app. Send a mouseup event if the mouse left the app, the button is still down and there is a view to receive the event (lastMouseDown)
Tests: See LPP-7724.
.......
Property changes on: openlaszlo/branches/4.2
___________________________________________________________________
Name: svnmerge-integrated
- /openlaszlo/branches/4.1:1-10153 /openlaszlo/branches/devildog:1-8432 /openlaszlo/branches/pagan-deities:1-7955,8825,10756-10920,10922-10928,10930-10935,11151,11207,11554 /openlaszlo/branches/paperpie:1-6504,6506-6574,6576-7135,7137-7235 /openlaszlo/branches/wafflecone:1-5746,5818-6068,6070-6205,6207-6213,6216-6265,6267-6368,6370-6431,6433-6450,6497,6509,6661,7097,7872 /openlaszlo/trunk:1-12154,12172-12175,12177-12185,12187-12194,12196,12201,12208,12229,12251-12252,12254-12255,12257-12258,12260,12262-12266,12268-12269,12271-12275,12278-12285,12303,12318-12323,12345,12360,12403,12420,12424,12429,12457,12473,12477,12508,12594,12596,12603,12664,12669,12675,12677,12719,12737,12752,12757
+ /openlaszlo/branches/4.1:1-10153 /openlaszlo/branches/devildog:1-8432 /openlaszlo/branches/pagan-deities:1-7955,8825,10756-10920,10922-10928,10930-10935,11151,11207,11554 /openlaszlo/branches/paperpie:1-6504,6506-6574,6576-7135,7137-7235 /openlaszlo/branches/wafflecone:1-5746,5818-6068,6070-6205,6207-6213,6216-6265,6267-6368,6370-6431,6433-6450,6497,6509,6661,7097,7872 /openlaszlo/trunk:1-12154,12172-12175,12177-12185,12187-12194,12196,12201,12208,12229,12251-12252,12254-12255,12257-12258,12260,12262-12266,12268-12269,12271-12275,12278-12285,12303,12318-12323,12345,12360,12403,12420,12424,12429,12457,12473,12477,12508,12594,12596,12603,12664,12669,12675,12677,12719,12737,12752,12757,12771
Modified: openlaszlo/branches/4.2/WEB-INF/lps/lfc/kernel/swf9/LzMouseKernel.as
===================================================================
--- openlaszlo/branches/4.2/WEB-INF/lps/lfc/kernel/swf9/LzMouseKernel.as 2009-02-07 03:27:45 UTC (rev 12771)
+++ openlaszlo/branches/4.2/WEB-INF/lps/lfc/kernel/swf9/LzMouseKernel.as 2009-02-07 03:39:48 UTC (rev 12772)
@@ -1,7 +1,7 @@
/**
* LzMouseKernel.as
*
- * @copyright Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved.
+ * @copyright Copyright 2001-2009 Laszlo Systems, Inc. All Rights Reserved.
* Use is subject to license terms.
*
* @topic Kernel
@@ -26,6 +26,7 @@
static var __callback = null;
static var __scope = null;
static var __lastMouseDown = null;
+ static var __mouseLeft:Boolean = false;
static var __listeneradded:Boolean = false ;
/**
@@ -53,6 +54,13 @@
LzMouseKernel.__lastMouseDown.__globalmouseup(event);
__lastMouseDown = null;
} else {
+ if (__mouseLeft && event.buttonDown && LzMouseKernel.__lastMouseDown != null) {
+ __mouseLeft = false;
+ //Debug.write(eventname, event.buttonDown, LzMouseKernel.__lastMouseDown);
+ var ev = new MouseEvent('mouseup');
+ LzMouseKernel.__lastMouseDown.__globalmouseup(ev);
+ LzMouseKernel.__lastMouseDown = null;
+ }
LzMouseKernel.__sendEvent(null, eventname);
}
}
@@ -60,6 +68,7 @@
// handles MOUSE_LEAVES event
static function __mouseLeavesHandler(event:Event):void {
var eventname = 'on' + event.type.toLowerCase();
+ LzMouseKernel.__mouseLeft = true;
LzMouseKernel.__sendEvent(null, eventname);
}
More information about the Laszlo-checkins
mailing list