[Laszlo-checkins] r8186 - openlaszlo/trunk/lps/includes/source

max@openlaszlo.org max at openlaszlo.org
Wed Mar 5 16:39:48 PST 2008


Author: max
Date: 2008-03-05 16:39:43 -0800 (Wed, 05 Mar 2008)
New Revision: 8186

Modified:
   openlaszlo/trunk/lps/includes/source/embednew.js
Log:
Change 20080305-maxcarlson-0 by maxcarlson at Roboto on 2008-03-05 15:17:23 PST
    in /Users/maxcarlson/openlaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Fix swf mousewheel support on windows opera and firefox when wmode is transparent

New Features:

Bugs Fixed: LPP-5393 - SWF doesn't get mousewheel events in Firefox when wmode is transparent

Technical Reviewer: promanik
QA Reviewer: lhenrywilkins at laszlosystems.com
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details: Opera on OS X doesn't support the mousewheel in SWF. This change adds mousewheel events to Windows firefox and opera when wmode is transparent.
    

Tests: See LPP-5393



Modified: openlaszlo/trunk/lps/includes/source/embednew.js
===================================================================
--- openlaszlo/trunk/lps/includes/source/embednew.js	2008-03-05 23:22:05 UTC (rev 8185)
+++ openlaszlo/trunk/lps/includes/source/embednew.js	2008-03-06 00:39:43 UTC (rev 8186)
@@ -133,7 +133,9 @@
 
         dojo.flash.setSwf(swfargs, minimumVersion);
         Lz.__BrowserDetect.init();
-        if (Lz.__BrowserDetect.OS == 'Mac') {
+        if (Lz.__BrowserDetect.OS == 'Mac' || 
+            // fix for LPP-5393
+            ( swfargs.wmode == 'transparent' && Lz.__BrowserDetect.OS == 'Windows' && (Lz.__BrowserDetect.isOpera || Lz.__BrowserDetect.isFirefox))) {
             LzMousewheelKernel.setCallback(app, '_sendMouseWheel');
         }
     }



More information about the Laszlo-checkins mailing list