[Feature Request] Navigate back and forward with a horizontal touchpad swipe
Author: itkrt2yCreated Sep 27, 2026Updated Sep 27, 2026
Summary
This is a feature request for touchpad swipe navigation: swiping two fingers horizontally on a touchpad to go back or forward in the session history. Other desktop browsers, including Chromium and Firefox, support this gesture. Ladybird currently does nothing on such a swipe, so the session history can only be traversed with the toolbar buttons, the keyboard shortcuts, and the mouse back and forward buttons.
Requested behavior
- Swiping two fingers to the right on a touchpad goes back in the session history, and swiping to the left goes forward.
- The gesture only navigates when the page does not scroll horizontally in that direction, so horizontal scrolling on pages and in scrollable elements keeps working as it does now.
- While the swipe is in progress, an arrow at the edge of the viewport follows the fingers and indicates whether releasing the swipe will navigate, so that a swipe can be abandoned before it navigates.
Prior art
- Chromium:
content/browser/renderer_host/overscroll_controller.ccandcontent/browser/web_contents/aura/gesture_nav_simple.cc - Firefox: https://bugzilla.mozilla.org/show_bug.cgi?id=1790580
Reference implementation
I implemented this in a fork to try it out. It works on Linux with the Qt UI.
Source: LadybirdBrowser/ladybird