Skip to content

Commit

Permalink
Drag outside image bounds.
Browse files Browse the repository at this point in the history
  • Loading branch information
nagavcindriqim committed Sep 23, 2024
1 parent abee235 commit 6be41b2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sources/UI/SwiftUI/Views/PhotoPreview/PhotoPreview.swift
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ extension PhotoPreview {
.content
.offset(x: contentOffset(for: geometry))
.simultaneousGesture(dragGesture(with: geometry))
.background {
Color.clear
.contentShape(Rectangle())
.simultaneousGesture(dragGesture(with: geometry))
}
}
}

Expand Down

0 comments on commit 6be41b2

Please sign in to comment.