Bug 514711

Summary: In thumbnail view, dragging a file to create a group, where the paired image is pages down, doesnt scroll properly
Product: [Applications] digikam Reporter: Roland <carbonwerkes>
Component: Usability-Drag&DropAssignee: Digikam Developers <digikam-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: caulier.gilles, metzpinguin
Priority: NOR    
Version First Reported In: 9.0.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: demo of drag scroll failure

Description Roland 2026-01-16 23:00:15 UTC
SUMMARY
Generically, a drag of a tree node or a tag node etc in the tree works as it should- select, drag up or down, and if you approach top or bottom of the control window, the window scrolls continuously. In Thumbnail mode, where if you have say 2 images that you want to group via a drag-over, and where those images are separated whatever- 50 other images due to naming or sorting preference etc- a drag of a file to the control boundary yield a nudge in that direction, but not a scroll. So, you have to back off and move down again. The nudges are tiny- 10 pixels etc, so moving a full row can take 50 cycles, and multiple rows- forget it. Easier to create a subfolder, move the files there, group them, and move them back to the parent folder. 


STEPS TO REPRODUCE
1.  In Thumbnail view, find a folder that has enough images to yield something like 3+ pages of images
2.  Select any image from any row on the first page of thumbnails, and commence a drag op towards any image on the 3rd+ page
3. As you approach the frame's bottom boundary, you will see the images on page 1 nudge up a bit and stop. 

OBSERVED RESULT
As with #3 above, page nudges up, but doesnt move continuously

EXPECTED RESULT
Page should scroll up, as is typical with any file manager, since doing a mouse-click-drag on the scroll bar control by defintion is not compatible with holding a selected image in drag mode

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Its possible this is some user setting/config thing, but if it is, I cannot imagine any scenario where this would be beneficial. And, its not consistent with how the Album or tag trees work, or how file managers/explorer work.
Comment 1 caulier.gilles 2026-01-17 14:01:03 UTC
Can you record a screencast of your desktop to see exactly the dysfunction here. This will help to investigate.
Comment 2 Maik Qualmann 2026-01-17 15:03:49 UTC
The zone where scrolling begins is currently 16 pixels. We cannot change the speed; a bug report exists regarding this.

It is important that the mouse cursor is not moved within this zone. The speed increases but immediately slows down if the cursor moves even one pixel.


Maik
Comment 3 Roland 2026-01-19 05:07:15 UTC
Created attachment 188670 [details]
demo of drag scroll failure
Comment 4 Maik Qualmann 2026-01-19 15:46:12 UTC
Yes, I can confirm this problem under Windows.

Maik
Comment 5 Maik Qualmann 2026-01-19 15:51:47 UTC
Git commit ce13c4c5623013d2835564f3ae4333f5784bda2a by Maik Qualmann.
Committed on 19/01/2026 at 15:50.
Pushed by mqualmann into branch 'master'.

try fix auto scroll QListView on Windows
setAcceptDrops(true) is already correctly set
in the ItemCategorizedView at the viewport().

M  +1    -1    core/app/items/views/digikamitemview.cpp

https://invent.kde.org/graphics/digikam/-/commit/ce13c4c5623013d2835564f3ae4333f5784bda2a
Comment 6 caulier.gilles 2026-01-19 16:20:44 UTC
And i can confirm also the dysfunction under Linux with Qt6, but not under macOS.

Gilles
Comment 7 caulier.gilles 2026-01-19 16:27:25 UTC
The commit do not fix the problem under Linux
Comment 8 Maik Qualmann 2026-01-19 19:02:38 UTC
Git commit 495b4d59d2cfe15648e5dcf338a982aeb5929230 by Maik Qualmann.
Committed on 19/01/2026 at 19:01.
Pushed by mqualmann into branch 'master'.

next try to fix QListView auto scroll

M  +3    -0    core/app/items/views/digikamitemview.cpp
M  +4    -4    core/libs/widgets/itemview/itemviewcategorized.cpp

https://invent.kde.org/graphics/digikam/-/commit/495b4d59d2cfe15648e5dcf338a982aeb5929230
Comment 9 Maik Qualmann 2026-01-19 19:04:22 UTC
I don't have this problem under Linux, neither under X11 nor under Wayland.

Maik
Comment 10 Maik Qualmann 2026-01-19 19:07:40 UTC
Based on this weblog, it also shows a way to change the scroll speed.

https://runebook.dev/en/docs/qt/qabstractitemview/autoScroll-prop

Maik
Comment 11 caulier.gilles 2026-01-19 20:47:51 UTC
Same behavior under Linux. I need to vibe the mouse a little bit over the drag area (on the top or bottom of the icon-view), else the scroll do not work.

Gilles