WoW:UIHANDLER OnMouseWheel: Difference between revisions
m (0-arg1 (binary subtraction) is probably slower than -arg1 (unary negation)) |
m (Move page script moved page UIHANDLER OnMouseWheel to UIHANDLER OnMouseWheel without leaving a redirect) |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
{{widgethandler}} | {{widgethandler}}<br> | ||
== Description == | == Description == | ||
Latest revision as of 04:49, 15 August 2023
Description
Called when mousewheel is spun while the mouse pointer is over the frame. If a frame does not have an OnMouseWheel handler, the event is passed on to underlying frames.
Arguments
- arg1 - Number indicating the direction the wheel is spinning
- 1 for spinning up
- -1 for spinning down
- (i.e. you will want to use (-arg1) for offsetting the position in a list view)
Note
If a frame did not previously have an <OnMouseWheel> tag, which will always be the case for CreateFrame()ed frames, you need to do Frame:EnableMouseWheel(1) on it in order to receive this event.