This is an automated email from the ASF dual-hosted git repository.
yishayw 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 68be5cd Fixes #1115
68be5cd is described below
commit 68be5cd22d32b555267409a60d2b5e8006a7b0dc
Author: Yishay Weiss <[email protected]>
AuthorDate: Thu Jul 15 13:44:15 2021 +0300
Fixes #1115
---
.../main/royale/mx/controls/beads/HideComboPopupOnMouseDownBead.as | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/beads/HideComboPopupOnMouseDownBead.as
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/beads/HideComboPopupOnMouseDownBead.as
index 5face2e..558272b 100644
---
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/beads/HideComboPopupOnMouseDownBead.as
+++
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/beads/HideComboPopupOnMouseDownBead.as
@@ -24,6 +24,7 @@ package mx.controls.beads
import org.apache.royale.events.MouseEvent;
import mx.core.FlexGlobals;
import org.apache.royale.html.beads.HideComboPopupOnMouseDownBead;
+ import org.apache.royale.core.UIBase;
/**
* The HideComboPopupOnMouseDownBead can be used with ComboBox to make
sure mouse down events
@@ -47,6 +48,7 @@ package mx.controls.beads
IEventDispatcher(_strand).addEventListener(MouseEvent.MOUSE_DOWN,
handleControlMouseDown);
callLater(function():void {
(FlexGlobals.topLevelApplication as
IEventDispatcher).addEventListener(MouseEvent.MOUSE_DOWN,
handleTopMostEventDispatcherMouseDown);
+ ((_strand as UIBase).topMostEventDispatcher as
IEventDispatcher).addEventListener(MouseEvent.MOUSE_DOWN,
handleTopMostEventDispatcherMouseDown);
});
}
@@ -58,7 +60,8 @@ package mx.controls.beads
{
IEventDispatcher(viewBead.popUp).removeEventListener(MouseEvent.MOUSE_DOWN,
handleControlMouseDown);
IEventDispatcher(_strand).removeEventListener(MouseEvent.MOUSE_DOWN,
handleControlMouseDown);
- (FlexGlobals.topLevelApplication as
IEventDispatcher).removeEventListener(MouseEvent.MOUSE_DOWN,
handleTopMostEventDispatcherMouseDown);
+ (FlexGlobals.topLevelApplication as
IEventDispatcher).removeEventListener(MouseEvent.MOUSE_DOWN,
handleTopMostEventDispatcherMouseDown);
+ ((_strand as UIBase).topMostEventDispatcher as
IEventDispatcher).removeEventListener(MouseEvent.MOUSE_DOWN,
handleTopMostEventDispatcherMouseDown);
}
}
}