Clicking the middle button doesn't allow me scroll the page. Is there any way to fix this behavior?
- Ubuntu 10.10
- Chromium 9.0.597.94
- Logitech MX518
Update: also Chrome, and the other Chromium based ones.
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
In Linux based/Mac systems, Google Chrome / Chromium hasn't got this feature. You have to get AutoScroll extension. Here it is: AutoScroll
This will work with all your applications without the need of installing anything.
To list available properties use
xinput list-props $deviceId. If you are using libinput (the future/present) almost all properties will start with libinput (also check
Since 17.04 Ubuntu uses libinput, so to set mouse properties:
xinput set-prop $deviceId "libinput Scroll Method Enabled" 0, 0, 1 # _button_ as scroll method xinput set-prop $deviceId "libinput Button Scrolling Button" 2 # Using middle buttpn. Already 2 by default xinput set-prop $deviceId "libinput Natural Scrolling Enabled" 1 # OPTIONAL, for natural scrolling. You can also get this with gsettings set org.gnome.desktop.peripherals.mouse natural-scroll true
- libinput Scroll Method Enabled 3 boolean values (8 bit, 0 or 1), in order "two-finger", "edge", "button". Indicates which scroll method is currently enabled on this device.
- libinput Button Scrolling Button 1 32-bit value. Sets the button number to use for button scrolling. This setting is independent of the scroll method, to enable button scrolling the method must be set to button-scrolling and a valid button must be set.
xinput --set-prop $deviceId 'Evdev Wheel Emulation' 1 xinput --set-prop $deviceId 'Evdev Wheel Emulation Button' 2 xinput --set-prop $deviceId 'Evdev Wheel Emulation Axes' 6 7 4 5
I recommend another couple of addons, that allows "Scroll a page as if a scrollbar is under your mouse." I found that give us more control over the scroll move.
With both addons you just click and hold secondary button pressed to scroll pages moving the mouse up and down and even horizontally.
I have Ubuntu 14.04 and mouse wheel stopped working on one of my Chrome instances. I followed the tip here and it works great. When I go into the page
about::flags, the "Smooth Scrolling" option was enabled. I disabled it and it works.