MATLAB: Hittest axes with WindowWheelScrollFcn callback

axeshittestwindowwheelscrollfcn

I am attempting to make a GUI that has interaction using the mouse wheel, and the GUI behavior should depend on which element the mouse cursor is over when the mouse wheel is used. There are multiple axes objects, and I have previously (probably around 2012) used hittest to check which axes the mouse cursor was hovering over. However, this no longer works unless I first use mouse click on the axes.
It seems like an odd behavior imo. Is there any way to achieve what I want without having to click on the axes first?