** Description changed: - [ Impact ] - - Holding Ctrl and using the mouse wheel or touchpad no longer zooms the - document in Evince, it scrolls it instead. This worked in previous - releases. - - The scroll event controller is declared in the EvView widget template - (libview/evince-view.ui), but EvView doesn't pick up controllers from - its template, so the scroll handler ev_view_scroll_event(), which - implements Ctrl+scroll zoom, is never called. The fix, from upstream - merge request !746, removes the controller from the template and creates - it in ev_view_init() instead. - - [ Test Plan ] - - 1. Launch the VM and open its screen: - - ``` - lxc launch images:ubuntu/stonking/desktop evince-sru --vm -c limits.cpu=2 -c limits.memory=4GiB - lxc console evince-sru --type=vga - ``` - 2. Install evince and download a multi-page PDF: - - ``` - lxc exec evince-sru -- apt-get update - lxc exec evince-sru -- apt-get install -y evince - lxc exec evince-sru -- su - ubuntu -c "wget -O test.pdf https://www.rfc-editor.org/rfc/rfc9110.pdf" - ``` - - 3. In the VM desktop, open a terminal and run `evince ~/test.pdf`. - - 4. Move the pointer over the document, hold Ctrl and scroll the mouse - wheel up, then down. Bug: the document scrolls and the zoom level in the - header bar stays the same. - - 5. Close Evince, enable stonking-proposed and install the fixed packages - (the fix is in libevview-4.0-5): - - ``` - lxc exec evince-sru -- sh -c 'printf "Types: deb\nURIs: http://archive.ubuntu.com/ubuntu\nSuites: stonking-proposed\nComponents: main universe\nSigned-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg\n" > /etc/apt/sources.list.d/proposed.sources' - lxc exec evince-sru -- apt-get update - lxc exec evince-sru -- apt-get install -y -t stonking-proposed evince evince-common libevview-4.0-5 libevdocument-4.0-6 - lxc exec evince-sru -- dpkg -l libevview-4.0-5 - ``` - - Check that the version is 49~alpha-2ubuntu3.1. - - 6. Repeat steps 3 and 4. Expected: Ctrl+wheel up zooms in, Ctrl+wheel - down zooms out, and the zoom level in the header bar changes. - - 7. Release Ctrl and scroll the mouse wheel. Expected: the document - scrolls and the zoom level doesn't change. - - [ Where problems could occur ] - - With the fix, the scroll handler runs for every scroll event over the - document, not only Ctrl+scroll. Without Ctrl it only closes the link - preview popover and passes the event on, so a mistake there would show - up as broken normal scrolling in Evince, evince-previewer, or other - applications using libevview. - - In tenacious and stonking the patch also changes an include in - libview/ev-view-presentation.c. This only affects compilation: if it - were wrong, the package would fail to build rather than misbehave at - runtime - - [ Other Info ] - - In tenacious and stonking the patch is modified. libview/ev-view- - presentation.c includes gtk/gtk.h instead of gdk/gdkkeysyms.h. GTK 4.24 - only allows gdkkeysyms.h to be included through gdk/gdk.h, so evince - currently fails to build there (also reported in Debian: - https://bugs.debian.org/1148193). The change is documented in the patch - header. Resolute has GTK 4.22, which doesn't have this restriction, so - the resolute upload uses the upstream patch unmodified - - Upstream issue: https://gitlab.gnome.org/GNOME/evince/-/issues/2131 - Upstream fix: https://gitlab.gnome.org/GNOME/evince/-/merge_requests/746 (not merged yet; a user on this bug tested it and confirmed it fixes the problem) - - [ Original Description ] - PDFs can no longer be zoomed with CTRL + scroll wheel. ubuntu 26.04 LTS evince 49~alpha-2ubuntu2 expected: PDFs zoom in/out on CTRL press and scroll wheel drag/push outcome: Showed page of pdf is moved, as if CTRL where not pressed. ProblemType: Bug DistroRelease: Ubuntu 26.04 Package: evince 49~alpha-2ubuntu2 ProcVersionSignature: Ubuntu 7.0.0-15.15-generic 7.0.0 Uname: Linux 7.0.0-15-generic x86_64 ApportVersion: 2.34.0-0ubuntu2 Architecture: amd64 CasperMD5CheckResult: pass CurrentDesktop: ubuntu:GNOME Date: Thu May 21 09:27:18 2026 InstallationDate: Installed on 2024-10-08 (590 days ago) InstallationMedia: Ubuntu 24.04.1 LTS "Noble Numbat" - Release amd64 (20240827.1) ProcEnviron: LANG=en_US.UTF-8 LC_TIME=en_DK.UTF-8 PATH=(custom, no user) SHELL=/bin/bash XDG_RUNTIME_DIR=<set> SourcePackage: evince UpgradeStatus: Upgraded to resolute on 2026-05-18 (3 days ago)
-- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to evince in Ubuntu. https://bugs.launchpad.net/bugs/2153540 Title: Evince does not zoom PDF on CTRL+scroll wheel To manage notifications about this bug go to: https://bugs.launchpad.net/evince/+bug/2153540/+subscriptions -- desktop-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
