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 2020/10/27 10:58:43 UTC
[royale-asjs] 01/03: Adding stub event handler
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
commit a8166742b9b3983fbeb43b18f808e8566e112963
Author: Yishay Weiss <yi...@hotmail.com>
AuthorDate: Mon Oct 26 20:07:21 2020 +0000
Adding stub event handler
---
.../main/royale/spark/components/TitleWindow.as | 56 +++++++++++-----------
1 file changed, 28 insertions(+), 28 deletions(-)
diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/TitleWindow.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/TitleWindow.as
index fb435d3..9781b86 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/TitleWindow.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/TitleWindow.as
@@ -596,35 +596,35 @@ public class TitleWindow extends Panel
* @playerversion AIR 1.5
* @productversion Royale 0.9.4
*/
- /* protected function moveArea_mouseUpHandler(event:Event):void
+ protected function moveArea_mouseUpHandler(event:Event):void // not implemented
{
- var sbRoot:DisplayObject = systemManager.getSandboxRoot();
-
- sbRoot.removeEventListener(
- MouseEvent.MOUSE_MOVE, moveArea_mouseMoveHandler, true);
- sbRoot.removeEventListener(
- MouseEvent.MOUSE_UP, moveArea_mouseUpHandler, true);
- sbRoot.removeEventListener(
- SandboxMouseEvent.MOUSE_UP_SOMEWHERE, moveArea_mouseUpHandler);
-
- systemManager.deployMouseShields(false);
-
- // Check to see that a move actually occurred and that the
- // user did not just click on the moveArea
- if (startBounds)
- {
- // Dispatch "windowMoveEnd" event with the starting bounds and current bounds.
- var endEvent:TitleWindowBoundsEvent =
- new TitleWindowBoundsEvent(TitleWindowBoundsEvent.WINDOW_MOVE_END,
- false, false, startBounds,
- new Rectangle(x, y, width, height));
- dispatchEvent(endEvent);
- startBounds = null;
- }
-
- offsetX = NaN;
- offsetY = NaN;
- } */
+ //var sbRoot:DisplayObject = systemManager.getSandboxRoot();
+ //
+ //sbRoot.removeEventListener(
+ //MouseEvent.MOUSE_MOVE, moveArea_mouseMoveHandler, true);
+ //sbRoot.removeEventListener(
+ //MouseEvent.MOUSE_UP, moveArea_mouseUpHandler, true);
+ //sbRoot.removeEventListener(
+ //SandboxMouseEvent.MOUSE_UP_SOMEWHERE, moveArea_mouseUpHandler);
+ //
+ //systemManager.deployMouseShields(false);
+ //
+ //// Check to see that a move actually occurred and that the
+ //// user did not just click on the moveArea
+ //if (startBounds)
+ //{
+ //// Dispatch "windowMoveEnd" event with the starting bounds and current bounds.
+ //var endEvent:TitleWindowBoundsEvent =
+ //new TitleWindowBoundsEvent(TitleWindowBoundsEvent.WINDOW_MOVE_END,
+ //false, false, startBounds,
+ //new Rectangle(x, y, width, height));
+ //dispatchEvent(endEvent);
+ //startBounds = null;
+ //}
+ //
+ //offsetX = NaN;
+ //offsetY = NaN;
+ }
//----------------------------------
// Active Window Handlers and helper methods