Viewport and mouseWheel


#1

Hi Jules,

It would be great if in a viewport with only an horizontal scrollbar,
the mouseWheelY(the most common one) would scroll too.
It seems to be handled partially in Viewport but after that the scrollbar only take the wheel value of its orientation.

Maybe something like
float increment = fabs(wheelIncrementY) > fabs(wheelIncrementX) ? wheelIncrementY : wheelIncrementX;
in ScrollBar::mouseWheelMove would be better.

or something specific in Viewport.

Thanks,


#2

A problem I can think of with that is that if someone has a bi-directional wheel, it’ll respond to both wheels, which would be a bit confusing. And there’s no way of telling whether a mouse has a horizontal wheel or not.