You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ca...@apache.org on 2020/06/27 19:43:08 UTC
[royale-asjs] branch develop updated: jewel-spinner: fix secondary
button triggering maintin button feature
This is an automated email from the ASF dual-hosted git repository.
carlosrovira 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 093b39b jewel-spinner: fix secondary button triggering maintin button feature
093b39b is described below
commit 093b39b792f4cf0a1b3d6940e22c8df66a7da904
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Sat Jun 27 21:42:55 2020 +0200
jewel-spinner: fix secondary button triggering maintin button feature
---
.../beads/controllers/SpinnerMouseController.as | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/controllers/SpinnerMouseController.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/controllers/SpinnerMouseController.as
index 57af2ec..7994936 100644
--- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/controllers/SpinnerMouseController.as
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/controllers/SpinnerMouseController.as
@@ -154,6 +154,11 @@ package org.apache.royale.jewel.beads.controllers
*/
private function incrementMouseDownHandler(event:MouseEvent):void
{
+ COMPILE::JS
+ {
+ if (event.button !== 0)
+ return;
+ }
mouseDown = true;
createTimer(incrementClickHandler, timerdelay);
}
@@ -162,6 +167,11 @@ package org.apache.royale.jewel.beads.controllers
*/
private function incrementMouseUpHandlermouseUpHandler(event:MouseEvent):void
{
+ COMPILE::JS
+ {
+ if (event.button !== 0)
+ return;
+ }
mouseDown = false;
removeTimer(incrementClickHandler);
}
@@ -183,6 +193,11 @@ package org.apache.royale.jewel.beads.controllers
*/
private function decrementMouseDownHandler(event:MouseEvent):void
{
+ COMPILE::JS
+ {
+ if (event.button !== 0)
+ return;
+ }
mouseDown = true;
createTimer(decrementClickHandler, timerdelay);
}
@@ -191,6 +206,11 @@ package org.apache.royale.jewel.beads.controllers
*/
private function decrementMouseUpHandlermouseUpHandler(event:MouseEvent):void
{
+ COMPILE::JS
+ {
+ if (event.button !== 0)
+ return;
+ }
mouseDown = false;
removeTimer(decrementClickHandler);
}