darktable icon indicating copy to clipboard operation
darktable copied to clipboard

Mouse scroll wheel no longer functions as next/previous at 100% zoom in culling layout

Open Cat333Pokemon opened this issue 3 months ago • 8 comments

Is there an existing issue for this?

  • [x] I checked and did not find my issue in the already reported ones

Describe the bug

When zoomed into a photo in the culling layout, it scrolls the photo itself instead of switching to the next/previous photo in the collection.

My suspicion is that this is an artifact of the GTK3 to GTK4 upgrade. This issue did not happen in Darktable 5.4 and appeared after upgrading to 5.6.

Steps to reproduce

  1. Open a collection with multiple photos.
  2. In the lighttable view, press X to enter the culling layout.
  3. Set the number of thumbnails to 1.
  4. Zoom a photo to 100% by either middle-clicking or holding Ctrl while scrolling with the mouse wheel.
  5. Without holding Ctrl, point the mouse cursor at the photo and use the mouse wheel to scroll.

Expected behavior

It should move to the next or previous photo. Alternatively, if this is not a bug, there should be an option to restore this behavior.

Logfile | Screenshot | Screencast

No response

Commit

No response

Where did you obtain darktable from?

OBS build

darktable version

5.6.0

What OS are you using?

Linux

What is the version of your OS?

Debian 13

Describe your system

Linux kernel: 6.12.96+deb13-amd64 CPU: AMD Ryzen 5 7600 RAM: 32 GB Windowing system: X11 Desktop environment: Cinnamon 6.4.10 GTK+ version

Are you using OpenCL GPU in darktable?

Yes

If yes, what is the GPU card and driver?

AMD Radeon RX 6750 XT 12GB; Mesa 25.0.7-2+deb13u1; OpenCL 2.0 3662.0 (HSA1.1,LC)

Please provide additional context if applicable. You can attach files too, but might need to rename to .txt or .zip

Can you reproduce with another darktable version(s)? No Can you reproduce with a clean install on another computer? Yes (Linux Mint 22.3) Can you reproduce with a RAW or JPEG or both? Both Are the steps above reproducible with a fresh edit (i.e. after discarding history)? Yes Is the issue still present using an empty/new config-dir (e.g. start darktable with --configdir "/tmp")? Yes

Cat333Pokemon avatar Aug 08 '26 16:08 Cat333Pokemon

If this appeared already in 5.6.0, is not due to the GTK4 move! No official build has the GTK4 preparation work yet. f5d6acb263 specifically introduced this bug to add touchpad panning to culling. Given that this touches code close to the preparation to GTK4, will take a look. Thanks for the report

Arecsu avatar Aug 08 '26 17:08 Arecsu

If this appeared already in 5.6.0, is not due to the GTK4 move! No official build has the GTK4 preparation work yet.

Ah, gotcha. Thanks for taking a look!

Cat333Pokemon avatar Aug 08 '26 17:08 Cat333Pokemon

Probably already fixed in 21201 #21201

TurboGit avatar Aug 08 '26 17:08 TurboGit

I found a way to improve the fix, and guard mouse wheels that deliver smooth events, along with further code clean up

Arecsu avatar Aug 08 '26 17:08 Arecsu

@Cat333Pokemon issue should be completely gone by now. If you can test latest master awesome. You can wait for the next nightly release tomorrow if don't feel like compiling here: https://github.com/darktable-org/darktable/releases

Arecsu avatar Aug 08 '26 23:08 Arecsu

Wow, you worked quickly! My system isn't currently set up to compile, so I'll give it a shot with the nightly AppImage tomorrow.

Cat333Pokemon avatar Aug 09 '26 00:08 Cat333Pokemon

The issue is indeed fixed in the nightly build. Thanks a lot, @Arecsu!

Cat333Pokemon avatar Aug 09 '26 04:08 Cat333Pokemon

Nice! Glad it got solved!

Arecsu avatar Aug 09 '26 04:08 Arecsu