mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
Allow hand card ordering by drag'n'drop only with left mouse button.
This commit is contained in:
parent
d3ce238b53
commit
0ee22d90ca
1 changed files with 4 additions and 0 deletions
|
@ -292,6 +292,10 @@ public class MageActionCallback implements ActionCallback {
|
|||
// drag'n'drop is allowed for HAND zone only
|
||||
return;
|
||||
}
|
||||
if (!SwingUtilities.isLeftMouseButton(e)) {
|
||||
// only allow draging with the left mouse button
|
||||
return;
|
||||
}
|
||||
isDragging = true;
|
||||
prevCard = card;
|
||||
Point p = card.getCardLocation();
|
||||
|
|
Loading…
Reference in a new issue