[Laszlo-checkins] r13286 - openlaszlo/trunk/demos/amazon
bargull@openlaszlo.org
bargull at openlaszlo.org
Sat Mar 14 14:23:32 PDT 2009
Author: bargull
Date: 2009-03-14 14:23:30 -0700 (Sat, 14 Mar 2009)
New Revision: 13286
Modified:
openlaszlo/trunk/demos/amazon/amazon.lzx
Log:
Change 20090314-bargull-abg by bargull at dell--p4--2-53 on 2009-03-14 20:00:50
in /home/Admin/src/svn/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: Amazon: prevent drag-image flash
New Features:
Bugs Fixed: LPP-7916 (Amazon-Demo: drag-image flashes when dragged over own product-image)
Technical Reviewer: (pending)
QA Reviewer: (pending)
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
Don't set drag-image when already dragging.
Tests:
see bugreport
Modified: openlaszlo/trunk/demos/amazon/amazon.lzx
===================================================================
--- openlaszlo/trunk/demos/amazon/amazon.lzx 2009-03-14 21:20:59 UTC (rev 13285)
+++ openlaszlo/trunk/demos/amazon/amazon.lzx 2009-03-14 21:23:30 UTC (rev 13286)
@@ -534,10 +534,12 @@
</method>
<method name="display" args="dragView, dragImage">
- this.setAttribute("x", dragView.getAttributeRelative("x", canvas)-12);
- this.setAttribute("y", dragView.getAttributeRelative("y", canvas)-5);
- img.setSource(dragImage);
- this.setAttribute("visible", true);
+ if (! this.dragging) {
+ this.setAttribute("x", dragView.getAttributeRelative("x", canvas)-12);
+ this.setAttribute("y", dragView.getAttributeRelative("y", canvas)-5);
+ img.setSource(dragImage);
+ this.setAttribute("visible", true);
+ }
</method>
<method name="hide">
@@ -575,7 +577,7 @@
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2009 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
More information about the Laszlo-checkins
mailing list