mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 21:12:04 -08:00
Use mouse point in event instead of calling getMousePosition()
Improves performance and is also the correct way to do this.
This commit is contained in:
parent
a9744b2d04
commit
0b13660348
1 changed files with 1 additions and 1 deletions
|
|
@ -1056,7 +1056,7 @@ public class CardPanel extends MagePermanent implements MouseListener, MouseMoti
|
|||
if (gameCard.hideInfo()) {
|
||||
return;
|
||||
}
|
||||
if (getMousePosition(true) != null) {
|
||||
if (this.contains(e.getPoint())) {
|
||||
return;
|
||||
}
|
||||
if (tooltipShowing) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue