Skip to content

Drift while panning the document with the mouse on Wayland (scroll) #998

Description

@maxigaz

Is there an existing issue for this?

  • I have searched the existing issues

Problem

While I hold the middle mouse button to pan the document currently open, the entire viewport seems to randomly 'scroll' on its own to the left and upwards, diagonally, even though I'm no longer moving the mouse.

This happens on Arch Linux on scroll (a Wayland compositor based on sway) and only in native Wayland mode. With XWayland (with the environment variable WAYLAND_DISPLAY=""), I can't reproduce it.

Here's a screencast that demonstrates the issue:

recording.mp4

Steps to reproduce

  1. Open a document. (I used the PDF version of the GNU coreutils manual in the screencast.
  2. Zoom in by a few steps and jump forward by at least one page.
  3. Pan the document with the mouse towards the right until you reach the right edge.
  4. While still holding the middle mouse button, notice that the document pans towards the upper left corner of the window.

Expected behavior

The document position stays the same when the middle mouse button is held but the mouse is not being moved.

zathura version (zathura --version)

2026.07.18

girara version (zathura --version)

2026.07.18

zathura backend

mupdf

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions