flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [01/12] git commit: [flex-asjs] [refs/heads/develop] - clientXY is more like stageXY
Date Mon, 12 Jan 2015 18:50:53 GMT
Repository: flex-asjs
Updated Branches:
  refs/heads/develop a4b5e9753 -> 90278a176


clientXY is more like 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/8b0eeb65
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/8b0eeb65
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/8b0eeb65

Branch: refs/heads/develop
Commit: 8b0eeb65093c8fcccacdc58f39365f025d58dbfa
Parents: a4b5e97
Author: Alex Harui <aharui@apache.org>
Authored: Mon Jan 12 10:43:32 2015 -0800
Committer: Alex Harui <aharui@apache.org>
Committed: Mon Jan 12 10:43:32 2015 -0800

----------------------------------------------------------------------
 .../src/org/apache/flex/events/MouseEvent.as    | 20 ++++++++++++++++----
 1 file changed, 16 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/8b0eeb65/frameworks/as/projects/FlexJSUI/src/org/apache/flex/events/MouseEvent.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/events/MouseEvent.as b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/events/MouseEvent.as
index ad54ddf..bd8baef 100644
--- a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/events/MouseEvent.as
+++ b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/events/MouseEvent.as
@@ -85,7 +85,6 @@ package org.apache.flex.events
         public function set localX(value:Number):void
         {
             _localX = value;
-            clientX = value;
             _stagePoint = null;
         }
         
@@ -97,7 +96,6 @@ package org.apache.flex.events
         public function set localY(value:Number):void
         {
             _localY = value;
-            clientY = value;
             _stagePoint = null;
         }
         
@@ -112,8 +110,22 @@ package org.apache.flex.events
         public var clickCount:int;
         
         // these map directly to JS MouseEvent fields.
-        public var clientX:Number;
-        public var clientY:Number;
+        public function get clientX():Number
+        {
+            return screenX;
+        }
+        public function set clientX(value:Number):void
+        {
+            localX = value;
+        }
+        public function get clientY():Number
+        {
+            return screenY;
+        }
+        public function set clientY(value:Number):void
+        {
+            localY = value;
+        }
         
         private var _stagePoint:Point;
         


Mime
View raw message