Skip to content

Commit

Permalink
1. add check
Browse files Browse the repository at this point in the history
  • Loading branch information
Misko Lee authored and Misko Lee committed May 31, 2021
1 parent ff72971 commit d4da0a4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/src/display/display_object.dart
Original file line number Diff line number Diff line change
Expand Up @@ -769,6 +769,9 @@ abstract class GDisplayObject
if (($mask != null || maskRect != null) && !hitTestMask(localPoint)) {
return null;
}
if(localPoint.x <= 0.0 && localPoint.y <= 0.0) {
return null;
}
if (getBounds(this, _sHelperRect).containsPoint(localPoint)) {
return this;
}
Expand Down

0 comments on commit d4da0a4

Please sign in to comment.