Fixed Scrolling issue on Tabbed Screen

This commit is contained in:
Frank 2022-07-20 00:54:14 +02:00
parent 8d0f312dc5
commit 7546efe097
2 changed files with 30 additions and 6 deletions

View file

@ -239,10 +239,13 @@ public class Container extends LayoutComponent<Container.ContainerRenderer, Cont
@Override
public boolean isMouseOver(double x, double y) {
if (visible) {
boolean res = false;
for (var child : children) {
return child.isMouseOver(x, y);
res |= child.isMouseOver(x, y);
}
return res || relativeBounds.contains(x, y);
}
return relativeBounds.contains(x, y);
return false;
}
}