Ubuntu – Horizontal scrolling treated as right click in Java applications

javatouchpad

I've enabled horizontal scrolling for my touchpad in Ubuntu 11.04, but when using it in Java applications (NetBeans in my case) it is instead as a right click.

Horizontal scrolling works perfectly in all applications that are not written in Java.

What can I do to make it work properly?

Best Answer

That is this bug. You can fix it as described there, by running synclient HorizTwoFingerScroll=0 (two finger scroll will still work fine).

You can add the command at startup with the "startup applications" dialog.