[From nobody Fri Feb 13 16:45:35 2009 Return-Path: <laszlo-checkins-bounces@openlaszlo.org> Received: from hedwig.laszlosystems.com ([unix socket]) by hedwig.corp.laszlosystems.com (Cyrus v2.3.9-Gentoo) with LMTPA; Fri, 13 Feb 2009 16:43:57 -0800 X-Sieve: CMU Sieve 2.3 Received: from barracuda.laszlosystems.com (barracuda.corp.laszlosystems.com [192.168.42.2]) by hedwig.laszlosystems.com (8.14.0/8.14.0) with ESMTP id n1E0hvv8032409; Fri, 13 Feb 2009 16:43:57 -0800 X-ASG-Debug-ID: 1234572236-0753006b0000-25cLJF X-ASG-Debug-ID: 1234572236-0753006b0000-25cLJF X-Barracuda-URL: http://192.168.42.2:8000/cgi-bin/mark.cgi Received: from openlaszlo.org (localhost [127.0.0.1]) by barracuda.laszlosystems.com (Spam Firewall) with ESMTP id 04DCDFBDC4; Fri, 13 Feb 2009 16:43:56 -0800 (PST) Received: from openlaszlo.org (www.openlaszlo.org [168.75.100.7]) by barracuda.laszlosystems.com with ESMTP id 3KplQBJI1o2mkLgu; Fri, 13 Feb 2009 16:43:56 -0800 (PST) X-ASG-Whitelist: Sender X-ASG-Whitelist: Client Received: from openlaszlo.org (openlaszlo.org [127.0.0.1]) by openlaszlo.org (8.13.4/8.13.4) with ESMTP id n1E0hpLR031566; Fri, 13 Feb 2009 16:43:51 -0800 Received: from openlaszlo.org (openlaszlo.org [168.75.100.7]) by openlaszlo.org (8.13.4/8.13.4) with ESMTP id n1E0hn2R031563 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for <laszlo-checkins@openlaszlo.org>; Fri, 13 Feb 2009 16:43:49 -0800 Received: (from apache@localhost) by openlaszlo.org (8.13.4/8.13.4/Submit) id n1E0hnts031562 for laszlo-checkins@openlaszlo.org; Fri, 13 Feb 2009 16:43:49 -0800 X-Barracuda-BBL-IP: 168.75.100.7 X-Barracuda-RBL-IP: 168.75.100.7 Date: Fri, 13 Feb 2009 16:43:49 -0800 From: max@openlaszlo.org Message-Id: <200902140043.n1E0hnts031562@openlaszlo.org> X-Authentication-Warning: openlaszlo.org: apache set sender to max@openlaszlo.org using -f To: laszlo-checkins@openlaszlo.org X-ASG-Orig-Subj: [Laszlo-checkins] r12851 - openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9 Subject: [Laszlo-checkins] r12851 - openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9 X-BeenThere: laszlo-checkins@openlaszlo.org X-Mailman-Version: 2.1.6 Precedence: list Reply-To: laszlo-dev@openlaszlo.org List-Id: OpenLaszlo checkins <laszlo-checkins.openlaszlo.org> List-Unsubscribe: <http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins>, <mailto:laszlo-checkins-request@openlaszlo.org?subject=unsubscribe> List-Archive: <http://www.openlaszlo.org/pipermail/laszlo-checkins> List-Post: <mailto:laszlo-checkins@openlaszlo.org> List-Help: <mailto:laszlo-checkins-request@openlaszlo.org?subject=help> List-Subscribe: <http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins>, <mailto:laszlo-checkins-request@openlaszlo.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: laszlo-checkins-bounces@openlaszlo.org Errors-To: laszlo-checkins-bounces@openlaszlo.org X-Barracuda-Connect: www.openlaszlo.org[168.75.100.7] X-Barracuda-Start-Time: 1234572237 X-Barracuda-Virus-Scanned: by Barracuda Spam Firewall at laszlosystems.com X-Synonym: Copied by Synonym (http://www.modulo.ro/synonym) to: mail-archive Author: max Date: 2009-02-13 16:43:47 -0800 (Fri, 13 Feb 2009) New Revision: 12851 Modified: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzMouseKernel.as Log: Change 20090212-maxcarlson-9 by maxcarlson@Bank.lan on 2009-02-12 23:59:18 PST in /Users/maxcarlson/openlaszlo/trunk-clean for http://svn.openlaszlo.org/openlaszlo/trunk Summary: Improve mouseupoutside behavior outside windows Bugs Fixed: LPP-7724 - Mouse events behave wrong in opaque mode (FireFox) Technical Reviewer: hminsky QA Reviewer: promanik Details: Rename __mouseLeaveHandler -> __mouseLeaveHandler. Clear __mouseLeft if set, regardless of button state. Make argument to __mouseLeaveHandler() optional so it can be called from external JavaScript. Tests: See updated testcase at LPP-7724 - test app.lzx?lzr=swf9, em.html, emOp.html and emIf.html in firefox 3 windows and mac. Modified: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzMouseKernel.as =================================================================== --- openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzMouseKernel.as 2009-02-13 21:59:51 UTC (rev 12850) +++ openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzMouseKernel.as 2009-02-14 00:43:47 UTC (rev 12851) @@ -47,7 +47,7 @@ LFCApplication.stage.addEventListener(MouseEvent.MOUSE_UP, __mouseHandler); LFCApplication.stage.addEventListener(MouseEvent.MOUSE_DOWN, __mouseHandler); LFCApplication.stage.addEventListener(MouseEvent.MOUSE_WHEEL, __mouseWheelHandler); - LFCApplication.stage.addEventListener(Event.MOUSE_LEAVE, __mouseLeavesHandler); + LFCApplication.stage.addEventListener(Event.MOUSE_LEAVE, __mouseLeaveHandler); __listeneradded = true; } } @@ -60,9 +60,9 @@ __lastMouseDown.__globalmouseup(event); __lastMouseDown = null; } else { - if (__mouseLeft && event.buttonDown) { + if (__mouseLeft) { __mouseLeft = false; - __mouseUpOutsideHandler(); + if (event.buttonDown) __mouseUpOutsideHandler(); } __sendEvent(null, eventname); } @@ -78,10 +78,9 @@ } // handles MOUSE_LEAVE event - static function __mouseLeavesHandler(event:Event):void { - var eventname = 'on' + event.type.toLowerCase(); + static function __mouseLeaveHandler(event:Event = null):void { __mouseLeft = true; - __sendEvent(null, eventname); + __sendEvent(null, 'onmouseleave'); } static function __mouseWheelHandler(event:MouseEvent):void { _______________________________________________ Laszlo-checkins mailing list Laszlo-checkins@openlaszlo.org http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins ]