Why do default interactions (pan, zoom, etc.) for UIAxes become disabled when declaring hardware callbacks such as WindowScrollWheelFcn? To illustrate, compare the behaviors in the following two examples:
f1 = uifigure; ax1 = uiaxes(f1); surf(ax1,peaks); %default interactions are enabled
f2 = uifigure; ax2 = uiaxes(f2); surf(ax2,peaks); f2.WindowScrollWheelFcn = 'disp("hello")'; %disables default interactions such as pan, rotate, etc.
Best Answer