How to Fix Mouse Wheel Scrolling Too Slowly or Fast in Ubuntu

Plugging a Logitech, Razer, or standard office USB mouse into Ubuntu only to find that spinning the scroll wheel creeps down Chrome, PDF readers, and code editors by half a centimetre at a time – with zero “Lines per scroll” slider inside Ubuntu Settings – is one of the quickest irritations users run into when switching from Windows. Fortunately, fixing mouse scroll speed takes two minutes depending on whether you run Wayland or Xorg, or need a quick browser tweak.

Step 1: Check Whether Ubuntu Is Using Wayland or Xorg

Scroll-wheel tuning tools differ between Ubuntu’s two display systems, so run one five-second command first:

  1. Open Terminal by pressing Ctrl + Alt + T.
  2. Run:
    echo $XDG_SESSION_TYPE
  3. Note whether it prints wayland (the default on modern Ubuntu 22.04 and 24.04 LTS) or x11.

Fix 1: Speed Up Chrome, Firefox, and VS Code Scrolling Independently (Works on Both Wayland & X11)

If smooth scrolling feels most painful inside your web browser or code editor, you can fix both straight inside settings without installing third-party daemons:

  • Mozilla Firefox: Open a tab, visit about:config, click Accept the Risk and Continue, search for mousewheel.default.delta_multiplier_y, click the edit pencil, and raise it from 100 to 200 or 250 (doubles or 2.5x scroll speed immediately!).
  • Google Chrome / Chromium / Edge: Search extensions for an open-source smooth-scroll customiser such as Chromium Wheel Smooth Scroller or launch Chrome with smoother scroll steps, and check chrome://flags for Smooth Scrolling if vertical scrolling feels stuttery.
  • Visual Studio Code: Open Settings (Ctrl + ,), search mouseWheelScrollSensitivity, and bump it from 1 to 2 or 2.5.

Fix 2: Adjust System-Wide Mouse Scroll Speed on Ubuntu Xorg With imwheel

If you run an X11 (x11) session (or switch to Ubuntu on Xorg from the login screen gear icon), imwheel adjusts physical wheel notches globally across every desktop application.

  1. Install imwheel in Terminal:
    sudo apt update && sudo apt install -y imwheel
  2. Create a clean configuration file setting a multiplier of 3 lines per notch specifically for scroll up/down (Buttons 4 & 5, leaving thumb Back/Forward buttons untouched):
    cat <<'EOF' > ~/.imwheelrc
    ".*"
    None,      Up,   Button4, 3
    None,      Down, Button5, 3
    Control_L, Up,   Control_L|Button4
    Control_L, Down, Control_L|Button5
    Shift_L,   Up,   Shift_L|Button4
    Shift_L,   Down, Shift_L|Button5
    EOF
  3. Start imwheel restricted solely to vertical wheel buttons so side thumb buttons keep working normally:
    imwheel -b "4 5"
  4. Test scrolling across Files and Chrome (change the 3 to 2 or 4 and rerun killall imwheel; imwheel -b "4 5" until it feels right), then add imwheel -b "4 5" inside Ubuntu’s Startup Applications app so it runs automatically at login.

Fix 3: Check Wayland Libinput Mouse Options & Natural Scrolling

On Wayland sessions (wayland), Ubuntu 24.04 LTS and GNOME handle pointer speed and Natural Scrolling directly under Settings > Mouse & Touchpad (see also our guide on adjusting mouse and touchpad speed in Ubuntu). Remember that wireless Logitech mice featuring high-resolution smooth scroll wheels (such as MX Master series) work cleanly with Solaar (sudo apt install solaar), which lets you toggle smart-shift wheel resistance and high-res scrolling per mouse directly on Linux.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.