diff --git a/qml/GridItemDelegate.qml b/qml/GridItemDelegate.qml index 9f93d90..9817437 100755 --- a/qml/GridItemDelegate.qml +++ b/qml/GridItemDelegate.qml @@ -30,6 +30,7 @@ Item { property bool searchMode: false property bool dragStarted: false property var dragItemIndex: index + property var dragSource: null property int pageIndex: 0 property int pageCount: 0 @@ -59,11 +60,26 @@ Item { return if (drag.source) { - launcherModel.move(drag.source.dragItemIndex, + control.dragSource = drag.source + dragTimer.restart() + } else { + control.dragSource = null + dragTimer.stop() + } + } + } + + Timer { + id: dragTimer + interval: 300 + onTriggered: { + if (control.dragSource) { + launcherModel.move(control.dragSource.dragItemIndex, control.dragItemIndex, control.pageIndex, control.pageCount) - _pageModel.move(drag.source.dragItemIndex, control.dragItemIndex) + _pageModel.move(control.dragSource.dragItemIndex, + control.dragItemIndex) } } } diff --git a/qml/main.qml b/qml/main.qml index 9da9fb1..d207e27 100755 --- a/qml/main.qml +++ b/qml/main.qml @@ -39,21 +39,6 @@ Item { property bool showed: launcher.showed property int iconSize: root.height < 960 ? 96 : 128 - onShowedChanged: { - if (showed) - searchFieldAni.start() - } - - NumberAnimation { - id: searchFieldAni - from: 0.0 - to: 1.0 - target: textField - property: "opacity" - easing.type: Easing.InQuad - duration: 250 - } - // onShowedChanged: { // appViewOpacityAni.restart() // blurAnimation.restart()