Skip to content

Commit 815bc41

Browse files
committed
fix: Fix abnormal animation for two-finger swipe
Fix abnormal animation for two-finger swipe Log: Fix abnormal animation for two-finger swipe pms: BUG-343525
1 parent 440db16 commit 815bc41

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

qml/FullscreenFrame.qml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,22 @@ InputEventItem {
353353
interactive: !folderGridViewPopup.visible
354354

355355
currentIndex: indicator.currentIndex
356+
357+
property bool isDragging: false
358+
359+
onFlickStarted: {
360+
if (!isDragging) {
361+
cancelFlick()
362+
contentX = currentIndex * width
363+
}
364+
}
365+
onDragStarted: {
366+
isDragging = true
367+
}
368+
onDragEnded: {
369+
isDragging = false
370+
}
371+
356372
function setCurrentIndex(index) {
357373
listviewPage.currentIndex = index
358374
listviewPage.currentIndex = Qt.binding(function() { return indicator.currentIndex })

0 commit comments

Comments
 (0)