Back and forward swipe gestures in Linux?

I’m using Gnome on Fedora 38 and the swipe gestures on the trackpad for forward and backward don’t work, as they do on MacOS. Is there a way to turn them on or is this not a feature yet for Linux?

I don’t know why this isn’t enabled by default, but you can get the swipe gestures to work by starting Brave like this:

brave-browser --enable-features=TouchpadOverscrollHistoryNavigation

Also make sure to use a Wayland DE and set “Preferred Ozone platform” in about:flags to Wayland.