emilk / emilk/egui

Pinch zoom doesn't work on Wayland

Open
#8,518 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Rust
Stars
30.6k
Forks
2.1k
Avg merge
1d 9h
Merged PRs (30d)
72

Description

**Describe the bug**
Pinch zoom does not change the zoom delta.

**To Reproduce**
Steps to reproduce the behavior:
1. use the zoom_delta from InputState for zooming
2. try to pinch zoom -> zoom_delta is still 1

I have confirmed normal zoom scrolling ctrl + scroll works fine on my touchpad.
Pinch zoom also works fine in other apps (in my case Zen Browser).

**Expected behavior**
Pinch zoom should change the zoom_delta appropriately.

**Desktop (please complete the following information):**
- OS: Linux (NixOS unstable)
- Desktop: Wayland (Niri)
- Version 0.36.1 (reproducible on main)

**Additional Context**
This also applies to zoom_delta_2d.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue on Linux Wayland with a touchpad, then trace how InputState computes zoom_delta and zoom_delta_2d. Done means pinch gestures change both zoom values appropriately while the existing ctrl+scroll behavior continues to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
desktop-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.