Skip to content

Commit

Permalink
Conditionally disable pan
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon committed Oct 3, 2023
1 parent b945c64 commit 99a22a0
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ const ImageItem = ({
});

const pan = Gesture.Pan()
.enabled(isScaled)
.averageTouches(true)
.onChange((e) => {
if (!imageDimensions) {
Expand Down

0 comments on commit 99a22a0

Please sign in to comment.