From cf4f6edfc1e79c4de3affae55c15e0a430ad0918 Mon Sep 17 00:00:00 2001 From: Chihchy Date: Sun, 15 Dec 2024 12:54:26 +0800 Subject: [PATCH] Fix reading page gestures --- EhPanda/View/Reading/ReadingView.swift | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/EhPanda/View/Reading/ReadingView.swift b/EhPanda/View/Reading/ReadingView.swift index 5522421a..78184ffe 100644 --- a/EhPanda/View/Reading/ReadingView.swift +++ b/EhPanda/View/Reading/ReadingView.swift @@ -105,7 +105,7 @@ struct ReadingView: View { gesture: SimultaneousGesture(magnificationGesture, tapGesture), content: imageStack ) - .disabled(gestureHandler.scale != 1) + .scrollDisabled(gestureHandler.scale != 1) } else { Pager( page: page, @@ -120,8 +120,7 @@ struct ReadingView: View { } .scaleEffect(gestureHandler.scale, anchor: gestureHandler.scaleAnchor) .offset(gestureHandler.offset) - .gesture(tapGesture) - .gesture(dragGesture) + .highPriorityGesture(dragGesture.simultaneously(with: tapGesture)) .gesture(magnificationGesture) .ignoresSafeArea() .id(store.databaseLoadingState)