Bug 359755 - FolderView drop location is determined by topleft corner of icon
Summary: FolderView drop location is determined by topleft corner of icon
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Desktop icons & Folder View widget (other bugs)
Version First Reported In: master
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Eike Hein
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-24 14:56 UTC by Kai Uwe Broulik
Modified: 2016-02-25 11:39 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kai Uwe Broulik 2016-02-24 14:56:18 UTC
When I drag around files on the FolderView containment and drop them, they end up in the position that the top left corner of the icon was in rather than the cell my mouse hovered.

Reproducible: Always

Steps to Reproduce:
1. Use Folder containment
2. Start dragging an icon
3. Move the icon ever so slightly to the left (make sure there's a free space left of it)
4. Drop

Actual Results:  
The icon most likely will be dropped into the cell left of it although I barely moved the icon and my mouse was still clearly inside the original cell

Expected Results:  
The icon will be dropped where I got it from, ie. the cell my mouse was in
Comment 1 Eike Hein 2016-02-25 11:39:44 UTC
Git commit c7e0335677244cf4c4c0d82701c730c4481aa02c by Eike Hein.
Committed on 25/02/2016 at 11:38.
Pushed by hein into branch 'Plasma/5.5'.

Use the item midpoint when calculating grid drop coords.

Not sure how this got lost.
Related: bug 358745

M  +2    -2    containments/desktop/package/contents/ui/FolderView.qml

http://commits.kde.org/plasma-desktop/c7e0335677244cf4c4c0d82701c730c4481aa02c