Viewport horizontall scrolling with mouse wheel


#1

Hi all!

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

Thanks in advance.


#2

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


#3

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.

 


#4

It works fine for me with code above.

viewport_.setScrollBarsShown (false, true);

#5

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