Skip to content

Commit

Permalink
Fix reading page scroll functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
chihchy committed Dec 21, 2024
1 parent e28fec8 commit 49320bf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion EhPanda/View/Reading/ReadingView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,11 @@ struct ReadingView: View {
}
.scaleEffect(gestureHandler.scale, anchor: gestureHandler.scaleAnchor)
.offset(gestureHandler.offset)
.highPriorityGesture(dragGesture.simultaneously(with: tapGesture))
.highPriorityGesture(
dragGesture.simultaneously(with: tapGesture),
isEnabled: gestureHandler.scale > 1
)
.gesture(tapGesture, isEnabled: gestureHandler.scale == 1)
.gesture(magnificationGesture)
.ignoresSafeArea()
.id(store.databaseLoadingState)
Expand Down

0 comments on commit 49320bf

Please sign in to comment.