Repository: flex-asjs
Updated Branches:
  refs/heads/tlf 3396fa7f9 -> 0d56a3978


Added support for buttonDown (it only works for left button — is that right?)


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

Branch: refs/heads/tlf
Commit: 0d56a39780493cbf3fbc4dbedd6c85adc8932728
Parents: 3396fa7
Author: Harbs <ha...@in-tools.com>
Authored: Mon Jun 19 10:08:28 2017 +0300
Committer: Harbs <ha...@in-tools.com>
Committed: Mon Jun 19 10:08:28 2017 +0300

----------------------------------------------------------------------
 .../src/main/flex/org/apache/flex/events/BrowserEvent.as  | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/0d56a397/frameworks/projects/Core/src/main/flex/org/apache/flex/events/BrowserEvent.as
----------------------------------------------------------------------
diff --git 
a/frameworks/projects/Core/src/main/flex/org/apache/flex/events/BrowserEvent.as 
b/frameworks/projects/Core/src/main/flex/org/apache/flex/events/BrowserEvent.as
index 1237529..c84eb9f 100644
--- 
a/frameworks/projects/Core/src/main/flex/org/apache/flex/events/BrowserEvent.as
+++ 
b/frameworks/projects/Core/src/main/flex/org/apache/flex/events/BrowserEvent.as
@@ -499,5 +499,15 @@ package org.apache.flex.events
                {
                        return wrappedEvent.type;
                }
+
+               public function get buttonDown():Boolean
+               {
+                       return wrappedEvent.event_.buttons == 1;
+               }
+
+               public function get buttons():int
+               {
+                       return wrappedEvent.event_.buttons;
+               }
        }
 }

Reply via email to