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 2022/07/03 06:03:05 UTC

[royale-asjs] branch develop updated: Don't let popups obscure busy cursor

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 256d044bab Don't let popups obscure busy cursor
256d044bab is described below

commit 256d044bab8b633dde3f8c54186587c86e37967b
Author: yweiss <yi...@mcafee.com>
AuthorDate: Sat Jul 2 23:02:42 2022 -0700

    Don't let popups obscure busy cursor
---
 .../src/main/royale/mx/managers/CursorManagerImpl.as             | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/frameworks/projects/MXRoyaleBase/src/main/royale/mx/managers/CursorManagerImpl.as b/frameworks/projects/MXRoyaleBase/src/main/royale/mx/managers/CursorManagerImpl.as
index 41bf0f3210..22e5c066b7 100644
--- a/frameworks/projects/MXRoyaleBase/src/main/royale/mx/managers/CursorManagerImpl.as
+++ b/frameworks/projects/MXRoyaleBase/src/main/royale/mx/managers/CursorManagerImpl.as
@@ -530,6 +530,11 @@ public class CursorManagerImpl extends EventDispatcher implements ICursorManager
         cursorList.splice(0);
         
         showCurrentCursor();
+
+        COMPILE::JS
+        {
+            document.body.style.cursor = "auto";
+        }
     }
 
     private var _strand:IStrand;
@@ -556,7 +561,7 @@ public class CursorManagerImpl extends EventDispatcher implements ICursorManager
     {
 	COMPILE::JS
 	{
-		(_strand as IRenderedObject).element.style.cursor = "wait";
+		document.body.style.cursor = "wait";
 	}
         // if (hasEventListener("setBusyCursor"))
     	// 	if (!dispatchEvent(new Event("setBusyCursor", false, true)))
@@ -588,7 +593,7 @@ public class CursorManagerImpl extends EventDispatcher implements ICursorManager
     {
 	COMPILE::JS
 	{
-		(_strand as IRenderedObject).element.style.cursor = "auto";
+		document.body.style.cursor = "auto";
 	}
         // if (hasEventListener("removeBusyCursor"))
     	// 	if (!dispatchEvent(new Event("removeBusyCursor", false, true)))