diff options
Diffstat (limited to 'kde-frameworks/kirigami/files')
-rw-r--r-- | kde-frameworks/kirigami/files/kirigami-5.92.0-ListItemDragHandle-emit-moveRequest.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/kde-frameworks/kirigami/files/kirigami-5.92.0-ListItemDragHandle-emit-moveRequest.patch b/kde-frameworks/kirigami/files/kirigami-5.92.0-ListItemDragHandle-emit-moveRequest.patch new file mode 100644 index 000000000000..bf6f5c6a7012 --- /dev/null +++ b/kde-frameworks/kirigami/files/kirigami-5.92.0-ListItemDragHandle-emit-moveRequest.patch @@ -0,0 +1,28 @@ +From a507a48e979c5881f65faac973a5b82b925e8642 Mon Sep 17 00:00:00 2001 +From: Tranter Madi <trmdi@yandex.com> +Date: Tue, 29 Mar 2022 02:20:03 +0000 +Subject: [PATCH] ListItemDragHandle: Emit moveRequest when cursor enters a new + index + +BUG: 451014 +FIXED-IN: 5.93 +--- + src/controls/ListItemDragHandle.qml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/controls/ListItemDragHandle.qml b/src/controls/ListItemDragHandle.qml +index 1c2edb1b..20c527db 100644 +--- a/src/controls/ListItemDragHandle.qml ++++ b/src/controls/ListItemDragHandle.qml +@@ -126,7 +126,7 @@ Item { + function arrangeItem() { + var newIndex = listView.indexAt(1, listView.contentItem.mapFromItem(listItem, 0, 0).y + internal.mouseDownY); + +- if (Math.abs(listItem.y - internal.startY) > height && newIndex > -1 && newIndex !== index) { ++ if (newIndex > -1 && newIndex !== index) { + root.moveRequested(index, newIndex); + } + } +-- +GitLab + |