mirror of
https://github.com/macocianradu/javaGUItoolkit.git
synced 2026-03-18 21:50:04 +00:00
reworked some content panel logic and listener logic
This commit is contained in:
@@ -86,11 +86,11 @@ public class Panel extends Visual {
|
||||
int l2y = v2.getLocationY();
|
||||
int r2y = v2.getLocationY() + v2.getHeight();
|
||||
|
||||
if(l1x > r2x || l2x > r1x) {
|
||||
if(l1x >= r2x || l2x >= r1x) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return l1y <= r2y && l2y <= r1y;
|
||||
return l1y < r2y && l2y < r1y;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user