Fix issue with scroll wheel, fixes #128

This commit is contained in:
Raoul Van den Berge
2016-06-19 17:28:21 +02:00
parent 267b2c1916
commit d3a4bf095c
2 changed files with 4 additions and 1 deletions

View File

@@ -127,7 +127,7 @@ public abstract class GuiBase extends GuiContainer {
int d = Mouse.getEventDWheel();
if (d != 0) {
if (scrollbar != null && d != 0) {
scrollbar.wheel(d);
}
}