diff --git a/containments/desktop/package/contents/ui/FolderView.qml b/containments/desktop/package/contents/ui/FolderView.qml --- a/containments/desktop/package/contents/ui/FolderView.qml +++ b/containments/desktop/package/contents/ui/FolderView.qml @@ -321,6 +321,7 @@ pressedItem.toolTip.hideToolTip(); dragX = mouse.x; dragY = mouse.y; + gridView.verticalDropHitscanOffset = pressedItem.iconArea.y + (pressedItem.iconArea.height / 2) dir.dragSelected(mouse.x, mouse.y); dragX = -1; dragY = -1; @@ -396,6 +397,7 @@ property bool isRootView: false property int iconSize: makeIconSize() + property int verticalDropHitscanOffset: 0 property Item hoveredItem: null @@ -902,7 +904,7 @@ } itemX = dropPos.x + offset.x + (listener.dragX % cellWidth) + (cellWidth / 2); - itemY = dropPos.y + offset.y + (listener.dragY % cellHeight) + (cellHeight / 2); + itemY = dropPos.y + offset.y + (listener.dragY % cellHeight) + gridView.verticalDropHitscanOffset; if (gridView.effectiveLayoutDirection == Qt.RightToLeft) { itemX -= (rows ? gridView.contentX : gridView.originX);