Bug 469354 - Ctrl scroll zoom direction is inverted in dolphin detail view
Summary: Ctrl scroll zoom direction is inverted in dolphin detail view
Status: RESOLVED FIXED
Alias: None
Product: dolphin
Classification: Applications
Component: view-engine: details mode (show other bugs)
Version: 23.04.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
: 475105 478742 479532 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-05-04 11:48 UTC by dckorah
Modified: 2024-03-03 10:51 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In: 23.12


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dckorah 2023-05-04 11:48:44 UTC
SUMMARY
Un-zooming using Ctrl + mouse scroll seems to go the opposite way. Once zoomed in and out, it seems to behave afterwards.

STEPS TO REPRODUCE
1. Open dolphin and set view to details mode
2. Now hold down Control key and scroll down to zoom out

OBSERVED RESULT
Rather than zooming out it zooms in. If you choose to zoom in by scrolling up, in step 2, then the zooming out actually  zooms in even more. Something spooky going on!

EXPECTED RESULT
Zoom the right way, in or out.

SOFTWARE/OS VERSIONS
Windows: N/A
macOS: N/A
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.9

ADDITIONAL INFORMATION
Comment 1 duha.bugs 2023-05-04 18:00:29 UTC
Can also confirm on Arch 5.27.4 

After pressing ctrl twice it works normally again (press ctrl -> release ctrl -> press ctrl+mwheel).
Comment 2 Evert Vorster 2023-07-20 21:07:21 UTC
Can confirm, Ctrl + Scroll does funky things in Dolphin. For me, it appears that it only zooms one way, no matter if you scroll up or down on the mouse wheel. I'll try the pressing ctrl twice trick. 

I have multiple panels open in Dolphin, and like Icon View with splits, and I zoom in and out often, and so this bug is a little annoying.

System information:
```
Operating System: Arch Linux 
KDE Plasma Version: 5.27.6
KDE Frameworks Version: 5.108.0
Qt Version: 5.15.10
Kernel Version: 6.4.4-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 8 × AMD Ryzen 7 4700U with Radeon Graphics
Memory: 36.9 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: LENOVO
Product Name: 20T8001JUS
System Version: ThinkPad E15 Gen 2
```
Comment 3 Méven 2023-07-21 05:21:09 UTC
Do you use a mouse or a touchpad ?
I would guess a mouse ?
Comment 4 Evert Vorster 2023-07-23 21:29:42 UTC
Ah, yes, the details. 

I am using a mouse, and it's under Wayland which does change the driver a little.
Comment 5 Evert Vorster 2023-07-24 00:42:15 UTC
Holding down Alt and scroll wheel moves the icons left and right as expected.
Comment 6 Evert Vorster 2023-07-24 00:47:32 UTC
More testing. 
The problem shows the same in X11 and Wayland, and on every view type in Dolphin, eg List, Icons and Details.

When you zoom in so much that it don't fit on one screen anymore then the holding down of Alt and doing the mouse scroll wheel thing works as expected. 

The system is a fully updated Arch with KDE desktop. I usually run Wayland, but just for today I ran X11 to see if this bug is visible there too.
Comment 7 Bug Janitor Service 2023-08-03 03:08:30 UTC
A possibly relevant merge request was started @ https://invent.kde.org/system/dolphin/-/merge_requests/580
Comment 8 Méven Car 2023-08-03 10:44:23 UTC
Git commit c1b260524381c4ac19d8055a4f716723ab7fb649 by Méven Car, on behalf of Amol Godbole.
Committed on 03/08/2023 at 12:44.
Pushed by meven into branch 'master'.

DolphinView: initialize m_controlWheelAccumulatedDelta

Ctrl + scroll wheel zoom was not working as designed after Dolphin is launched. Initialize m_controlWheelAccumulatedDelta in DolphinView's constructor. 

M  +1    -0    src/views/dolphinview.cpp

https://invent.kde.org/system/dolphin/-/commit/c1b260524381c4ac19d8055a4f716723ab7fb649
Comment 9 duha.bugs 2023-10-02 16:19:51 UTC
*** Bug 475105 has been marked as a duplicate of this bug. ***
Comment 10 Evert Vorster 2024-02-16 04:47:49 UTC
It seems that there has been a regression, and this bug is alive again. 

My system info:
Operating System: Arch Linux 
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.12
Kernel Version: 6.6.16-1-lts (64-bit)
Graphics Platform: Wayland
Processors: 32 × 13th Gen Intel® Core™ i9-13900HX
Memory: 62.5 GiB of RAM
Graphics Processor: Mesa Intel® Graphics
Manufacturer: TUXEDO
Product Name: PD5x_7xSNC_SND_SNE
System Version: Not Applicable
Comment 11 fanzhuyifan 2024-02-16 06:25:33 UTC
*** Bug 478742 has been marked as a duplicate of this bug. ***
Comment 12 duha.bugs 2024-02-16 17:48:48 UTC
(In reply to Evert Vorster from comment #10)
> It seems that there has been a regression, and this bug is alive again. 
> 
> My system info:
> Operating System: Arch Linux 

Please note the "Version Fixed In" Field says 23.12. Which means it is fixed in Dolphin version 23.12. or later. Arch stable is currently on 23.08.5-1, so that's why you don't have the fix.
Comment 13 duha.bugs 2024-03-03 10:51:20 UTC
*** Bug 479532 has been marked as a duplicate of this bug. ***