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 2021/07/29 15:59:08 UTC
[royale-asjs] branch develop updated: Allow offset for mveArea
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 a08b1a5 Allow offset for mveArea
a08b1a5 is described below
commit a08b1a5c01ce2101e33da56a561aae554f891354
Author: Yishay Weiss <yi...@hotmail.com>
AuthorDate: Thu Jul 29 18:58:03 2021 +0300
Allow offset for mveArea
Reference #1139
---
.../Basic/src/main/royale/org/apache/royale/html/beads/DragBead.as | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/DragBead.as b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/DragBead.as
index 1b40131..b22a348 100644
--- a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/DragBead.as
+++ b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/DragBead.as
@@ -114,11 +114,11 @@ package org.apache.royale.html.beads
var yDelta:Number = event.clientY - startingPoint.y;
var potentialX:Number = _host.x + xDelta;
var potentialY:Number = _host.y + yDelta;
- if (potentialX < 0 || potentialX > _moveArea.x + _moveArea.width - _host.width)
+ if (potentialX < _moveArea.x || potentialX > _moveArea.x + _moveArea.width - _host.width)
{
xDelta = 0;
}
- if (potentialY < 0 || potentialY > _moveArea.y + _moveArea.height - _host.height)
+ if (potentialY < _moveArea.y || potentialY > _moveArea.y + _moveArea.height - _host.height)
{
yDelta = 0;
}