104,670pages on
this wiki
Add New Page
Talk0 Share
Widget handlers < OnMouseWheel

Description Edit

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 Edit

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 Edit

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.

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Also on Fandom

Random Wiki