mirror of
https://github.com/correl/mage.git
synced 2025-01-12 11:08:01 +00:00
[UI] Fixed Issue#464: Play card interaction with set hand order
This commit is contained in:
parent
4924622ded
commit
e949918da9
1 changed files with 1 additions and 2 deletions
|
@ -226,8 +226,7 @@ public class MageActionCallback implements ActionCallback {
|
|||
if (isDragging) {
|
||||
Point mouse = new Point(e.getX(), e.getY());
|
||||
SwingUtilities.convertPointToScreen(mouse, transferData.component);
|
||||
int xOffset = card.getXOffset(card.getCardWidth());
|
||||
maxXOffset = Math.abs((int) (mouse.getX() - initialMousePos.x) - xOffset);
|
||||
maxXOffset = Math.abs((int) (mouse.getX() - initialMousePos.x));
|
||||
}
|
||||
|
||||
clearDragging(card);
|
||||
|
|
Loading…
Reference in a new issue