PANEL/OnMouseWheeled

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Undo revision 20931 by Saikred (talk) - The passed panel is implied with the colon. See http://www.lua.org/pil/5.html.)
 
Line 1: Line 1:
 
{{Hook
 
{{Hook
|Name=OnMouseWheeled
 
|Parent=PANEL
 
 
|Description=Called whenever the mouse wheel was used.
 
|Description=Called whenever the mouse wheel was used.
 
|Realm=Client
 
|Realm=Client
 +
|Predicted=No
 
}}
 
}}
 
{{Arg
 
{{Arg
Line 9: Line 8:
 
|name=scrollDelta
 
|name=scrollDelta
 
|desc=The scroll delta, indicating how much the user turned the mouse wheel.
 
|desc=The scroll delta, indicating how much the user turned the mouse wheel.
 +
}}
 +
{{Ret
 +
|type=boolean
 +
|desc=Return true to suppress default action.
 
}}
 
}}

Latest revision as of 17:40, 31 May 2019

 PANEL:OnMouseWheeled( )

Description

Called whenever the mouse wheel was used.

Arguments

number scrollDelta

The scroll delta, indicating how much the user turned the mouse wheel.

Returns

boolean

Return true to suppress default action.
Personal tools
Navigation