Quantcast Hook into OnMouseWheel - ESOUI
Thread Tools Display Modes
03/03/20, 10:29 AM   #1
ownedbynico
AddOn Author - Click to view addons
Join Date: Nov 2019
Posts: 3
Hook into OnMouseWheel

Hello,

im trying to hook into ZO_WorldMap_OnMouseWheel to detect if the user is zooming into the world map.

Code:
ZO_PreHook('ZO_WorldMap_OnMouseWheel',
function(self)
    d("scrolling")
end)
This is not working for whatever reason. I tried it with ZO_WorldMapZoomPlus_OnClicked and its working without a problem.
Does anyone have a idea why?

Last edited by ownedbynico : 03/03/20 at 10:57 AM.
  Reply With Quote
03/03/20, 11:30 AM   #2
ownedbynico
AddOn Author - Click to view addons
Join Date: Nov 2019
Posts: 3
It's working now. Use ZO_WorldMap_MouseWheel instead.
This can be closed.
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » Hook into OnMouseWheel

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off