Check mouse button before firing events for kinetic scrolling.
Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
parent
c69f34adc3
commit
4acd3cda02
|
@ -799,6 +799,10 @@ public class DownloadsMenu extends BasicGameState {
|
|||
|
||||
@Override
|
||||
public void mouseReleased(int button, int x, int y) {
|
||||
// check mouse button
|
||||
if (button == Input.MOUSE_MIDDLE_BUTTON)
|
||||
return;
|
||||
|
||||
startDownloadIndexPos.released();
|
||||
startResultPos.released();
|
||||
}
|
||||
|
|
|
@ -735,6 +735,10 @@ public class SongMenu extends BasicGameState {
|
|||
|
||||
@Override
|
||||
public void mousePressed(int button, int x, int y) {
|
||||
// check mouse button
|
||||
if (button == Input.MOUSE_MIDDLE_BUTTON)
|
||||
return;
|
||||
|
||||
if (isScrollingToFocusNode)
|
||||
return;
|
||||
|
||||
|
@ -744,6 +748,10 @@ public class SongMenu extends BasicGameState {
|
|||
|
||||
@Override
|
||||
public void mouseReleased(int button, int x, int y) {
|
||||
// check mouse button
|
||||
if (button == Input.MOUSE_MIDDLE_BUTTON)
|
||||
return;
|
||||
|
||||
if (isScrollingToFocusNode)
|
||||
return;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user