@onekeyfe/react-native-pager-view 3.0.144 → 3.0.146

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.
@@ -130,6 +130,14 @@ static UIColor *RNCInterpolateColor(UIColor *from, UIColor *to, CGFloat progress
130
130
  return shouldBegin;
131
131
  }
132
132
 
133
+ // Tab and category items are UIButtons that start tracking on touch-down, and UIScrollView does
134
+ // not cancel UIControl touches by default, so a drag that began on an item never scrolled the bar.
135
+ // The host NativeList used to hide this by holding touch-down back for about 150 ms.
136
+ - (BOOL)touchesShouldCancelInContentView:(UIView *)view
137
+ {
138
+ return [view isKindOfClass:UIControl.class] ? YES : [super touchesShouldCancelInContentView:view];
139
+ }
140
+
133
141
  @end
134
142
 
135
143
  static void RNCLogNativeTabScrollBoundary(NSString *owner,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/react-native-pager-view",
3
- "version": "3.0.144",
3
+ "version": "3.0.146",
4
4
  "description": "React Native wrapper for Android and iOS ViewPager",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/module/index.js",
@@ -66,7 +66,7 @@
66
66
  "typescript": "^5.9.2"
67
67
  },
68
68
  "peerDependencies": {
69
- "@onekeyfe/react-native-native-logger": "3.0.144",
69
+ "@onekeyfe/react-native-native-logger": "3.0.146",
70
70
  "react": "*",
71
71
  "react-native": "*"
72
72
  },