royale-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [royale-asjs] 17/21: listen for click instead of up, at least for now
Date Fri, 28 Sep 2018 03:42:57 GMT
This is an automated email from the ASF dual-hosted git repository.

aharui pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit a260d711f62842a938cfc3fcbe4f0247e519baa3
Author: Alex Harui <aharui@apache.org>
AuthorDate: Thu Sep 27 12:26:07 2018 -0700

    listen for click instead of up, at least for now
---
 .../royale/html/beads/controllers/MenuSelectionMouseController.as     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/controllers/MenuSelectionMouseController.as
b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/controllers/MenuSelectionMouseController.as
index 61e933c..ad4ee3f 100644
--- a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/controllers/MenuSelectionMouseController.as
+++ b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/controllers/MenuSelectionMouseController.as
@@ -91,7 +91,7 @@ package org.apache.royale.html.beads.controllers
          */
 		override protected function handleItemAdded(event:ItemAddedEvent):void
 		{
-			IEventDispatcher(event.item).addEventListener("itemMouseUp", selectedHandler);
+			IEventDispatcher(event.item).addEventListener("itemClicked", selectedHandler);
 			IEventDispatcher(event.item).addEventListener("itemRollOver", rolloverHandler);
 			IEventDispatcher(event.item).addEventListener("itemRollOut", rolloutHandler);
 		}
@@ -101,7 +101,7 @@ package org.apache.royale.html.beads.controllers
          */
 		override protected function handleItemRemoved(event:ItemRemovedEvent):void
 		{
-			IEventDispatcher(event.item).removeEventListener("itemMouseUp", selectedHandler);
+			IEventDispatcher(event.item).removeEventListener("itemClicked", selectedHandler);
 			IEventDispatcher(event.item).removeEventListener("itemRollOver", rolloverHandler);
 			IEventDispatcher(event.item).removeEventListener("itemRollOut", rolloutHandler);
 		}


Mime
View raw message