forked from External/mage
GUI: fixed wrong clicks from additional mouse buttons (now only left clicks are allowed, closes #11455)
This commit is contained in:
parent
75958e3710
commit
a0ed89035f
17 changed files with 82 additions and 21 deletions
|
|
@ -608,6 +608,11 @@ public abstract class CardPanel extends MagePermanent implements ComponentListen
|
|||
return;
|
||||
}
|
||||
|
||||
// ignore all additional mouse buttons
|
||||
if (!SwingUtilities.isLeftMouseButton(e)) {
|
||||
return;
|
||||
}
|
||||
|
||||
// double clicks processing, see https://stackoverflow.com/questions/4051659/identifying-double-click-in-java
|
||||
// logic: run timer to reset clicks counter
|
||||
mouseClicksCount = e.getClickCount();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue