@cleartrip/ct-design-intersection-observer 5.28.0-SNAPSHOT-impression-fix.0 → 5.28.0-SNAPSHOT-inter-2.0
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.
- package/package.json +8 -8
- package/src/useinView.native.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cleartrip/ct-design-intersection-observer",
|
|
3
|
-
"version": "5.28.0-SNAPSHOT-
|
|
3
|
+
"version": "5.28.0-SNAPSHOT-inter-2.0",
|
|
4
4
|
"description": "Intersection Observer Component",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "./dist/ct-design-intersection-observer.cjs.js",
|
|
@@ -24,15 +24,15 @@
|
|
|
24
24
|
"src"
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@cleartrip/ct-design-scroll-container": "5.28.0-SNAPSHOT-
|
|
28
|
-
"@cleartrip/ct-design-container": "5.28.0-SNAPSHOT-
|
|
29
|
-
"@cleartrip/ct-design-
|
|
30
|
-
"@cleartrip/ct-design-
|
|
31
|
-
"@cleartrip/ct-design-
|
|
32
|
-
"@cleartrip/ct-design-
|
|
27
|
+
"@cleartrip/ct-design-scroll-container": "5.28.0-SNAPSHOT-inter-2.0",
|
|
28
|
+
"@cleartrip/ct-design-container": "5.28.0-SNAPSHOT-inter-2.0",
|
|
29
|
+
"@cleartrip/ct-design-theme": "5.28.0-SNAPSHOT-inter-2.0",
|
|
30
|
+
"@cleartrip/ct-design-style-manager": "5.27.1-SNAPSHOT-inter-2.0",
|
|
31
|
+
"@cleartrip/ct-design-list": "5.28.0-SNAPSHOT-inter-2.0",
|
|
32
|
+
"@cleartrip/ct-design-common-utils": "5.27.1-SNAPSHOT-inter-2.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@cleartrip/ct-design-types": "5.28.0-SNAPSHOT-
|
|
35
|
+
"@cleartrip/ct-design-types": "5.28.0-SNAPSHOT-inter-2.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"react": ">=16.8.0",
|
package/src/useinView.native.ts
CHANGED
|
@@ -200,7 +200,7 @@ const useInView = <T>({
|
|
|
200
200
|
const visiblePercentage = threshold[0] * 100;
|
|
201
201
|
const isVisible =
|
|
202
202
|
horizontal || gestureHorizontallyScrollable
|
|
203
|
-
? horizontalVisibility >= visiblePercentage
|
|
203
|
+
? horizontalVisibility >= visiblePercentage
|
|
204
204
|
: verticalVisibility >= visiblePercentage;
|
|
205
205
|
const visibility = horizontal ? horizontalVisibility : verticalVisibility;
|
|
206
206
|
|