Skip to content

Commit 8774a0c

Browse files
Merge pull request #138 from maidi29/patch-1
Persist event for onLongPress callback
2 parents bbe861f + 92fe867 commit 8774a0c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ReactNativeZoomableView.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,7 @@ class ReactNativeZoomableView extends Component<
481481
PanResponderCallbacks['onPanResponderGrant']
482482
> = (e, gestureState) => {
483483
if (this.props.onLongPress) {
484+
e.persist();
484485
this.longPressTimeout = setTimeout(() => {
485486
this.props.onLongPress?.(
486487
e,

0 commit comments

Comments
 (0)