Author: max
Date: 2007-08-27 19:17:21 -0700 (Mon, 27 Aug 2007)
New Revision: 6261

Modified:
   openlaszlo/branches/wafflecone/WEB-INF/lps/lfc/services/LzTrack.lzs
Log:
Change 20070827-maxcarlson-Q by [EMAIL PROTECTED] on 2007-08-27 18:27:38 PDT
    in /Users/maxcarlson/openlaszlo/wafflecone
    for http://svn.openlaszlo.org/openlaszlo/branches/wafflecone

Summary: Ensure only one mousetrackup event is sent

New Features:

Bugs Fixed: LPP-4585 - Two onmousetrackup events fired when only 1 should be 
fired.

Technical Reviewer: promanik
QA Reviewer: jcrowley
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details: Ensure onmousetrackup events are only sent once by __LZmouseup(), 
which is called by the view, and by the global mouse manager in this case.
    

Tests: See LPP-4585.



Modified: openlaszlo/branches/wafflecone/WEB-INF/lps/lfc/services/LzTrack.lzs
===================================================================
--- openlaszlo/branches/wafflecone/WEB-INF/lps/lfc/services/LzTrack.lzs 
2007-08-28 01:29:57 UTC (rev 6260)
+++ openlaszlo/branches/wafflecone/WEB-INF/lps/lfc/services/LzTrack.lzs 
2007-08-28 02:17:21 UTC (rev 6261)
@@ -338,7 +338,14 @@
     for (var i in this.__LZactivegroups) {
         var thisgroup = this.__LZactivegroups[i];
         //Debug.info('i', i, thisgroup, thisgroup.__LZlasthit, 
thisgroup.__LZlasthit.onmousetrackup);
-        if (thisgroup && thisgroup.__LZlasthit.onmousetrackup && 
thisgroup.__LZlasthit.onmousetrackup.ready) 
thisgroup.__LZlasthit.onmousetrackup.sendEvent(this.__LZlasthit);
+        if (thisgroup && thisgroup.__LZlasthit.onmousetrackup && 
thisgroup.__LZlasthit.onmousetrackup.ready) {
+            if (this['__LZlastmouseup'] == thisgroup.__LZlasthit) {
+                this.__LZlastmouseup = null;
+            } else {
+                
thisgroup.__LZlasthit.onmousetrackup.sendEvent(this.__LZlasthit);
+                this.__LZlastmouseup = thisgroup.__LZlasthit;
+            }
+        }
     }
 }
 


_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins

Reply via email to