mirror of
https://github.com/edubart/otclient.git
synced 2025-12-13 12:29:46 +01:00
implement more functionality
* update TODO * rework UISpinBox * restore move of stackable items and with horizontal scrollbar * implement classic control look
This commit is contained in:
@@ -180,9 +180,17 @@ end
|
||||
|
||||
function UIScrollBar:onMouseWheel(mousePos, mouseWheel)
|
||||
if mouseWheel == MouseWheelUp then
|
||||
self:decrement()
|
||||
if self.orientation == 'vertical' then
|
||||
self:decrement()
|
||||
else
|
||||
self:increment()
|
||||
end
|
||||
else
|
||||
self:increment()
|
||||
if self.orientation == 'vertical' then
|
||||
self:increment()
|
||||
else
|
||||
self:decrement()
|
||||
end
|
||||
end
|
||||
return true
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user