summaryrefslogtreecommitdiff
blob: bf6f5c6a7012a6fdeca7a97c88bf373a0235ee4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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