Forgot this from previous commit.
This commit is contained in:
parent
2ada93db9c
commit
7724b8059d
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue