How to disable horizontal scrolling within virtualbox on Ubuntu guest, Windows 7 host?

Posted by Steven Rosato on Super User See other posts from Super User or by Steven Rosato
Published on 2010-03-22T17:39:31Z Indexed on 2010/03/22 17:41 UTC
Read the original article Hit count: 324

I am using Windows 7 as Host, Ubuntu Karmic as guest OS with guest tools installed and I get an annoying glitch when switching from host to the guest machine: Vertical scrolling switches to horizontal! (using the mouse wheel). Since I don't really care about horizontal scrolling, how can I disable this?

I have checked the web and the only thing I found was to play in the xorg.conf file and adding in the section "InputDevice"

Option "ZAxisMapping" "4 5" 

which would enable vertical scrolling only. The thing is, I don't have that section in my config file so I guessed that I would need to add

Section "InputDevice"
    Identifier "VBoxMouse"
    Driver "vboxmouse"
    Option "ZAxisMapping" "4 5"
EndSection

But that does not seem to work after restarting xserver.

Any workaround for this?

© Super User or respective owner

Related posts about scroll-wheel

Related posts about ubuntu