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