Widget.MouseWheel
This function is called when the mouse wheel turns.
function Widget:MouseWheel(delta, x, y)
delta
(number): how much it turned since last callx
(number): mouse x screen coordinatey
(number): mouse y screen coordinateThis method is a protected virtual method. It can only be used by declaring it in a custom widget.
-- CustomWidget.lua
CustomWidget = {}
function CustomWidget:MouseWheel(delta, x, y)
-- code to handle mouse wheel event according to delta, x, and y
end