v0.9.2: improved logic for buttons inside of scroll areas

This commit is contained in:
Evan Debenham
2021-01-17 18:16:27 -05:00
parent 5be3fe7ba0
commit 412ea03892
6 changed files with 21 additions and 7 deletions
@@ -261,6 +261,7 @@ public class Visual extends Gizmo {
Camera c = camera();
if (c == null) return false;
if (!c.hitTest(x, y)) return false;
PointF p = c.screenToCamera( x, y );
return overlapsPoint( p.x, p.y );