flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [02/16] git commit: [flex-asjs] [refs/heads/develop] - use screenXY instead of stageXY
Date Mon, 05 Jan 2015 23:21:21 GMT
use screenXY instead of stageXY


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/faed8de6
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/faed8de6
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/faed8de6

Branch: refs/heads/develop
Commit: faed8de69b340b121e560f97a41be285de91d93a
Parents: c709923
Author: Alex Harui <aharui@apache.org>
Authored: Mon Jan 5 10:08:01 2015 -0800
Committer: Alex Harui <aharui@apache.org>
Committed: Mon Jan 5 15:20:59 2015 -0800

----------------------------------------------------------------------
 .../FlexJSStore/src/productsView/ProductCatalogThumbnail.mxml  | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/faed8de6/examples/FlexJSStore/src/productsView/ProductCatalogThumbnail.mxml
----------------------------------------------------------------------
diff --git a/examples/FlexJSStore/src/productsView/ProductCatalogThumbnail.mxml b/examples/FlexJSStore/src/productsView/ProductCatalogThumbnail.mxml
index ad0609f..0989fb5 100755
--- a/examples/FlexJSStore/src/productsView/ProductCatalogThumbnail.mxml
+++ b/examples/FlexJSStore/src/productsView/ProductCatalogThumbnail.mxml
@@ -91,7 +91,7 @@ limitations under the License.
                 event.target != compare &&
                 event.target != details)
             {
-                dragStartPoint = new Point(event.stageX, event.stageY);
+                dragStartPoint = new Point(event.screenX, event.screenY);
                 dragStartPoint = PointUtils.globalToLocal(dragStartPoint, this);
 
             }
@@ -102,8 +102,8 @@ limitations under the License.
             if (dragStartPoint != null)
             {
                 var dragEvent:DragEvent = new DragEvent(DragEvent.DRAG_START, true);
-                dragEvent.localX = dragStartPoint.x;
-                dragEvent.localY = dragStartPoint.y;
+                dragEvent.clientX = dragStartPoint.x;
+                dragEvent.clientY = dragStartPoint.y;
                 dragEvent.buttonDown = true;
                 dispatchEvent(dragEvent);
 


Mime
View raw message