Viewport horizontall scrolling with mouse wheel

Hi all!

Guys, if there are any convenient ways to configure viewport to allow horizontal scrolling by mouse wheel vertical scrolling?

Thanks in advance.

If you turn off its vertical scrollbar, doesn't it already handle that?

I think it should be something like this but I've tried

viewport.setScrollBarsShown (false, true, false, true);

but it doesn't give any impact.

 

It works fine for me with code above.

viewport_.setScrollBarsShown (false, true);

for some reasons this didn't work for me. Can it dependent of the viewed component that which was set by setViewedComponent(...) method?