@onekeyfe/react-native-native-sheet 3.0.128 → 3.0.129
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.
|
@@ -299,7 +299,8 @@ private final class NativeSheetViewController: UIViewController,
|
|
|
299
299
|
func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldReceive touch: UITouch) -> Bool {
|
|
300
300
|
guard let container = presentationController?.containerView else { return false }
|
|
301
301
|
let point = touch.location(in: container)
|
|
302
|
-
|
|
302
|
+
let sheetFrame = view.convert(view.bounds, to: container)
|
|
303
|
+
return !sheetFrame.contains(point)
|
|
303
304
|
}
|
|
304
305
|
|
|
305
306
|
@objc private func handleBackdropTap(_ recognizer: UITapGestureRecognizer) {
|
package/package.json
CHANGED