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:
draxdyn 2016-06-01 20:33:28 +02:00
parent a9744b2d04
commit 0b13660348

View file

@ -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) {