@onekeyfe/react-native-native-sheet 3.0.127 → 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
- return !view.frame.contains(point)
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/react-native-native-sheet",
3
- "version": "3.0.127",
3
+ "version": "3.0.129",
4
4
  "description": "Native bottom sheet host for arbitrary React Native content",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/module/index.js",