jgraph / jgraph/drawio

Shortcut `Ctrl+Mousewheel` for Zooming in/out not working on linux

Open
#5,684 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
JavaScript
Stars
8.2k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

Preflight Checklist
  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for a feature request that matches the one I want to file, without success.

You must agree to search and the code of conduct. You must fill in this entire template. If you delete part/all or miss parts out your issue will be closed.

Describe the bug
The Ctrl/Alt+ Mousewheel shortcut for zooming in/out is not working on Linux. The canvas just scrolls as if the modifier key is never pressed.

To Reproduce
Steps to reproduce the behavior:

  1. open draw.io editor
  2. create an empty file
  3. press down and hold Ctrl
  4. scroll the mouse wheel
  5. the canvas scrolls up and down, instead of zoom in or out

Expected behavior
The canvas zooms in or out

Screenshots
/

draw.io version (In the Help->About menu of the draw.io editor):

  • draw.io version v29.0.3

Desktop (please complete the following information):

  • Manjaro Linux x86_64
  • Kernel: 6.18.4-1
  • DE: Plasma 6.5.4 X11

Additional context

  • Clicking the zoom button works.
  • Keyboard shortcut Ctrl + +/- also works.
  • Both shortcuts "Ctrl+mousewheel" and "Alt+mousewheel" are not working.
  • Both Keys Left_Ctrl/Alt and Right_Ctrl/Alt are not working.
  • The issue exists for both Web and Desktop version of draw.io on Linux, including the AppImage version and the version from package manager.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Ctrl/Alt-plus-mousewheel behavior in the Linux web or desktop editor, then trace the canvas mousewheel and modifier-key handling. Done means the canvas zooms in or out with either modifier and does not scroll instead; verify both left and right modifier keys and the listed Linux environments.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.