elementary / browser

Epiphany Flatpak Ref
GNU General Public License v3.0
4 stars 4 forks source link

Implement pinch-to-zoom #54

Open subnut opened 2 years ago

subnut commented 2 years ago

Problem

Implement pinch zooming, i.e. pinch out to zoom in, and pinch in to zoom out in a webpage without reflowing the contents of the webpage (ie. how pinch-zooming works on firefox in Wayland)

Proposal

Support for touchpad gestures under X11 (XServer 21.1) has been recently added to GTK

I was wondering if we could use this to add pinch-zooming to the web browser. Currently no browser supports pinch-zooming under Xorg

Prior Art (Optional)

Firefox (under Wayland) GNOME Web/Epiphany (under Wayland)

alice-mkh commented 2 years ago

WebKit just uses a GtkGestureZoom. I believe you need https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/3610 and that's it. (well, and the corresponding xinput stuff etc)