You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by yi...@apache.org on 2021/07/15 12:24:25 UTC

[royale-asjs] branch develop updated: Fixes #1133

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 b6f72a1  Fixes #1133
b6f72a1 is described below

commit b6f72a11a3511caa7ddce86049fd7e6f6ba8f5b8
Author: Yishay Weiss <yi...@hotmail.com>
AuthorDate: Thu Jul 15 15:19:50 2021 +0300

    Fixes #1133
---
 .../royale/mx/controls/beads/HideComboPopupOnMouseDownBead.as     | 8 ++++++++
 1 file changed, 8 insertions(+)

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 558272b..3b47439 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
@@ -49,6 +49,10 @@ package mx.controls.beads
 			callLater(function():void {
 				(FlexGlobals.topLevelApplication as IEventDispatcher).addEventListener(MouseEvent.MOUSE_DOWN, handleTopMostEventDispatcherMouseDown);
 				((_strand as UIBase).topMostEventDispatcher as IEventDispatcher).addEventListener(MouseEvent.MOUSE_DOWN, handleTopMostEventDispatcherMouseDown);
+				COMPILE::JS 
+				{
+					window.addEventListener("wheel", handleTopMostEventDispatcherMouseDown);
+				}
 			});
 		}
 		
@@ -62,6 +66,10 @@ package mx.controls.beads
 			IEventDispatcher(_strand).removeEventListener(MouseEvent.MOUSE_DOWN, handleControlMouseDown);
 			(FlexGlobals.topLevelApplication as IEventDispatcher).removeEventListener(MouseEvent.MOUSE_DOWN, handleTopMostEventDispatcherMouseDown);
 			((_strand as UIBase).topMostEventDispatcher as IEventDispatcher).removeEventListener(MouseEvent.MOUSE_DOWN, handleTopMostEventDispatcherMouseDown);
+			COMPILE::JS 
+			{
+				window.removeEventListener("wheel", handleTopMostEventDispatcherMouseDown);
+			}
 		}
 	}
 }