Skip to content

Commit d4da0a4

Browse files
Misko LeeMisko Lee
authored andcommitted
1. add check
1 parent ff72971 commit d4da0a4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/src/display/display_object.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -769,6 +769,9 @@ abstract class GDisplayObject
769769
if (($mask != null || maskRect != null) && !hitTestMask(localPoint)) {
770770
return null;
771771
}
772+
if(localPoint.x <= 0.0 && localPoint.y <= 0.0) {
773+
return null;
774+
}
772775
if (getBounds(this, _sHelperRect).containsPoint(localPoint)) {
773776
return this;
774777
}

0 commit comments

Comments
 (0)