Fixed bug where disabling mouse buttons also blocks scrolling. (#220)

Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
Jeffrey Han 2016-12-20 15:18:20 -05:00
parent 8b7b7e0354
commit 4446487575
2 changed files with 2 additions and 2 deletions

View File

@ -1213,7 +1213,7 @@ public class Game extends BasicGameState {
@Override @Override
public void mouseWheelMoved(int newValue) { public void mouseWheelMoved(int newValue) {
if (Options.isMouseWheelDisabled() || Options.isMouseDisabled()) if (Options.isMouseWheelDisabled())
return; return;
UI.changeVolume((newValue < 0) ? -1 : 1); UI.changeVolume((newValue < 0) ? -1 : 1);

View File

@ -184,7 +184,7 @@ public class GamePauseMenu extends BasicGameState {
@Override @Override
public void mouseWheelMoved(int newValue) { public void mouseWheelMoved(int newValue) {
if (Options.isMouseWheelDisabled() || Options.isMouseDisabled()) if (Options.isMouseWheelDisabled())
return; return;
UI.changeVolume((newValue < 0) ? -1 : 1); UI.changeVolume((newValue < 0) ? -1 : 1);