Skip to content
This repository was archived by the owner on Apr 29, 2021. It is now read-only.

Commit 9fa0936

Browse files
author
Yuncong Zhang
committed
Fix.
1 parent 6ce54e8 commit 9fa0936

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Runtime/rendering/proxy_box.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,8 +1017,7 @@ public override bool hitTest(HitTestResult result,
10171017
Offset center = this._clip.center;
10181018
Offset offset = new Offset((position.dx - center.dx) / this._clip.width,
10191019
(position.dy - center.dy) / this._clip.height);
1020-
if (offset.distanceSquared > 0.25f) // x^2 + y^2 > r^2
1021-
{
1020+
if (offset.distanceSquared > 0.25f) {
10221021
return false;
10231022
}
10241023

0 commit comments

Comments
 (0)