Forgot this from previous commit.

This commit is contained in:
BenDol 2014-07-13 02:10:30 +12:00
parent 2ada93db9c
commit 7724b8059d
1 changed files with 2 additions and 2 deletions

View File

@ -112,7 +112,7 @@ function UIScrollArea:onMouseWheel(mousePos, mouseWheel)
end
if mouseWheel == MouseWheelUp then
local minimum = self.verticalScrollBar:getMinimum()
if self.verticalScrollBar:getValue() < minimum then
if self.verticalScrollBar:getValue() <= minimum then
return false
end
self.verticalScrollBar:decrement()
@ -135,7 +135,7 @@ function UIScrollArea:onMouseWheel(mousePos, mouseWheel)
self.horizontalScrollBar:increment()
else
local minimum = self.horizontalScrollBar:getMinimum()
if self.horizontalScrollBar:getValue() < minimum then
if self.horizontalScrollBar:getValue() <= minimum then
return false
end
self.horizontalScrollBar:decrement()