Skip to content

Commit

Permalink
Fix reading page gestures
Browse files Browse the repository at this point in the history
  • Loading branch information
chihchy committed Dec 15, 2024
1 parent 875c017 commit cf4f6ed
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions EhPanda/View/Reading/ReadingView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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)
Expand Down

0 comments on commit cf4f6ed

Please sign in to comment.