Skip to content

Commit 7d67941

Browse files
committed
fix: Fix the jitter issue when swiping with two fingers
Fix the jitter issue when swiping with two fingers Log: Fix the jitter issue when swiping with two fingers pms: BUG-343525
1 parent 7312067 commit 7d67941

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

qml/FullscreenFrame.qml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ InputEventItem {
229229

230230
MouseArea {
231231
anchors.fill: parent
232-
scrollGestureEnabled: false
232+
scrollGestureEnabled: true
233233
enabled: !folderGridViewPopup.visible
234234
onClicked: {
235235
if (!DebugHelper.avoidHideWindow) {
@@ -247,13 +247,14 @@ InputEventItem {
247247
} else if (xDelta !== 0) {
248248
toPage = (xDelta > 0) ? 1 : -1
249249
}
250-
if (toPage < 0) {
250+
// Check boundary before triggering page switch to avoid animation jitter
251+
if (toPage < 0 && listviewPage.currentIndex > 0) {
251252
flipPageDelay.start()
252253
if (!searchEdit.focus) { // reset keyboard focus when using mouse to flip page, but keep searchEdit focus
253254
baseLayer.focus = true
254255
}
255256
decrementPageIndex(listviewPage)
256-
} else if (toPage > 0) {
257+
} else if (toPage > 0 && listviewPage.currentIndex < listviewPage.count - 1) {
257258
flipPageDelay.start()
258259
if (!searchEdit.focus) { // reset keyboard focus when using mouse to flip page, but keep searchEdit focus
259260
baseLayer.focus = true
@@ -350,7 +351,7 @@ InputEventItem {
350351
activeFocusOnTab: true
351352
focus: true
352353
visible: searchEdit.text === ""
353-
interactive: !folderGridViewPopup.visible
354+
interactive: false
354355

355356
currentIndex: indicator.currentIndex
356357
function setCurrentIndex(index) {

0 commit comments

Comments
 (0)