You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ha...@apache.org on 2019/07/15 10:32:57 UTC
[royale-asjs] branch develop updated: Make MouseEvent button values
work correctly for wrapped events
This is an automated email from the ASF dual-hosted git repository.
harbs pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/develop by this push:
new 0a9a732 Make MouseEvent button values work correctly for wrapped events
0a9a732 is described below
commit 0a9a732845a5d90c615754c0f8078f7b2f649893
Author: Harbs <ha...@in-tools.com>
AuthorDate: Mon Jul 15 13:32:46 2019 +0300
Make MouseEvent button values work correctly for wrapped events
---
.../Core/src/main/royale/org/apache/royale/events/MouseEvent.as | 3 +++
1 file changed, 3 insertions(+)
diff --git a/frameworks/projects/Core/src/main/royale/org/apache/royale/events/MouseEvent.as b/frameworks/projects/Core/src/main/royale/org/apache/royale/events/MouseEvent.as
index 4ce22a6..9674055 100644
--- a/frameworks/projects/Core/src/main/royale/org/apache/royale/events/MouseEvent.as
+++ b/frameworks/projects/Core/src/main/royale/org/apache/royale/events/MouseEvent.as
@@ -332,6 +332,9 @@ package org.apache.royale.events
{
wrappedEvent = event;
nativeEvent = event.getBrowserEvent();
+ // for wrapped events, proxy the button values to the native events
+ _button = -1;
+ _buttons = -1;
}
public var relatedObject:Object;