Bug 505038

Summary: Folder's visual hitboxes don't match their actual hitboxes
Product: [Plasma] plasmashell Reporter: Fernando M. Muniz <fernandommuniz>
Component: Desktop icons & Folder View widgetAssignee: Niccolò Venerandi <niccolo>
Status: RESOLVED FIXED    
Severity: minor CC: hein, nate, niccolo
Priority: NOR Keywords: usability
Version First Reported In: 6.3.91   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 6.4.4
Sentry Crash Report:
Attachments: The pointer drops the file inside the blue hitbox, but it doesn't match the actual hitbox of the folder.

Description Fernando M. Muniz 2025-05-31 04:33:53 UTC
Created attachment 181914 [details]
The pointer drops the file inside the blue hitbox, but it doesn't match the actual hitbox of the folder.

Drag the edge of an item into the edge of a folder on Desktop.

Result:
The visuals of the folders hitbox, and the actual hitbox aren't 1:1, as better shown in the video attached.
Comment 1 Nate Graham 2025-06-03 22:52:43 UTC
Can reproduce. I can also click in the invisible region to select the item.

Probably the click/drag handlers are not taking into account the visual size of the highlight effect, which varies per item based on the length of the text label.
Comment 2 Bug Janitor Service 2025-06-04 09:11:34 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/3039
Comment 3 Niccolò Venerandi 2025-07-22 16:23:42 UTC
Git commit 5c4123ead2731a61635fbe7411a5b986c50e25c9 by Niccolò Venerandi.
Committed on 22/07/2025 at 16:21.
Pushed by niccolove into branch 'master'.

Only interact with file and folders when directly touching them

M  +3    -0    containments/desktop/package/contents/ui/FolderItemDelegate.qml
M  +33   -41   containments/desktop/package/contents/ui/FolderView.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/5c4123ead2731a61635fbe7411a5b986c50e25c9
Comment 4 Niccolò Venerandi 2025-07-22 16:24:11 UTC
Git commit 27b26fe36822e99e629b5a09de5d92c32ac00163 by Niccolò Venerandi.
Committed on 22/07/2025 at 16:24.
Pushed by niccolove into branch 'Plasma/6.4'.

Only interact with file and folders when directly touching them


(cherry picked from commit 5c4123ead2731a61635fbe7411a5b986c50e25c9)

Co-authored-by: Niccolò Venerandi <niccolo@venerandi.com>

M  +3    -0    containments/desktop/package/contents/ui/FolderItemDelegate.qml
M  +33   -41   containments/desktop/package/contents/ui/FolderView.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/27b26fe36822e99e629b5a09de5d92c32ac00163