Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

This post is a duplicate from superuser.com, but since I had no answers, I started to doubt it was a user question and maybe more of a programming question (because of the configuration files), so here it is:

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?

like image 308
Steven Rosato Avatar asked Mar 28 '10 14:03

Steven Rosato


People also ask

How do I get rid of the scroll bar in virtualbox?

Basically the scrolling will switch from vertical to horizontal if the ALT key is pressed at the same time as falling into the virtualbox window. This happened to me because I was using dexpot in Win7 with the desktop switching feature using the alt key.

How do I stop horizontal scrolling?

To hide the horizontal scrollbar and prevent horizontal scrolling, use overflow-x: hidden: HTML. CSS.

Is horizontal scrolling accessible?

Users may ignore content accessible through horizontal scrolling or “swiping” as they don't expect content there. Our research found that even strong cues such as arrows frequently remain unnoticed. People expect to scroll vertically for additional content, but they don't expect to scroll sideways.


2 Answers

Well since the the ZAxisMapping should already disable the horizontal scrolling in my question, but of course did still not seem to work, I have found that it was actually a virtualbox bug that has something to do with the ALT key modifier. Basically the scrolling will switch from vertical to horizontal if the ALT key is pressed at the same time as falling into the virtualbox window. This happened to me because I was using dexpot in Win7 with the desktop switching feature using the alt key.

Until the bug is corrected, the workaround is after getting into the vbox window and noticing that scrolling was switched to horizontal, you need to hit the host key, hit ALT again, then manually click the vbox window to return to it, without touching the alt button. For now, I do not use the alt key for switching desktops, and everything works fine again.

like image 129
Steven Rosato Avatar answered Sep 29 '22 16:09

Steven Rosato


I had the same issue - until I installed the VirtualBox Guest Additions.

like image 43
Chris Lercher Avatar answered Sep 29 '22 18:09

Chris Lercher