[UI] Fixed Issue#464: Play card interaction with set hand order

This commit is contained in:
magenoxx 2014-07-18 12:07:08 +04:00
parent 4924622ded
commit e949918da9

View file

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