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 82b4334 Implement useHandCursor
new 8b661c4 Merge branch 'develop' of
https://github.com/apache/royale-asjs into develop
82b4334 is described below
commit 82b4334a6d8fb17bd127e3514b2ef497bf862e39
Author: Yishay Weiss <[email protected]>
AuthorDate: Tue Nov 24 13:55:56 2020 +0000
Implement useHandCursor
---
.../src/main/royale/mx/core/UIComponent.as | 25 +++++++++++++++++++---
1 file changed, 22 insertions(+), 3 deletions(-)
diff --git
a/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
b/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
index 074e470..ec74d33 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
@@ -1084,6 +1084,7 @@ public class UIComponent extends UIBase
_accessibilityEnabled = value;
}
+ private var _useHandCursor:Boolean;
/**
* From flash.display.Sprite
*
@@ -1096,15 +1097,33 @@ public class UIComponent extends UIBase
{ override }
public function get useHandCursor():Boolean
{
- trace("useHandCursor not implemented");
- return false;
+ COMPILE::JS
+ {
+ return _useHandCursor;
+ }
+ COMPILE::SWF
+ {
+ trace("useHandCursor not implemented");
+ return false;
+ }
}
COMPILE::SWF
{ override }
public function set useHandCursor(value:Boolean):void
{
- trace("useHandCursor not implemented");
+ COMPILE::JS
+ {
+ if (value != _useHandCursor)
+ {
+ element.style.cursor = value ? "pointer" : "auto";
+ _useHandCursor = value;
+ }
+ }
+ COMPILE::SWF
+ {
+ trace("useHandCursor not implemented");
+ }
}
/**