@swmansion/react-native-bottom-sheet 0.9.1 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -80,9 +80,9 @@ public final class RNSBottomSheetHostingView: UIView {
|
|
|
80
80
|
panGesture = UIPanGestureRecognizer(target: self, action: #selector(handlePan(_:)))
|
|
81
81
|
panGesture.delegate = self
|
|
82
82
|
panGesture.cancelsTouchesInView = true
|
|
83
|
-
//
|
|
84
|
-
//
|
|
85
|
-
panGesture.delaysTouchesBegan =
|
|
83
|
+
// Let child controls show immediate press feedback. If the interaction
|
|
84
|
+
// becomes a sheet drag, handlePan(.began) cancels in-flight RN touches.
|
|
85
|
+
panGesture.delaysTouchesBegan = false
|
|
86
86
|
panGesture.delaysTouchesEnded = false
|
|
87
87
|
sheetContainer.addGestureRecognizer(panGesture)
|
|
88
88
|
}
|
package/package.json
CHANGED