@react-native-oh-tpl/react-native-gesture-handler 2.14.1-2.14.15 → 2.14.1-2.14.16
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/harmony/gesture_handler/BuildProfile.ets +1 -1
- package/harmony/gesture_handler/oh-package-lock.json5 +6 -5
- package/harmony/gesture_handler/oh-package.json5 +2 -2
- package/harmony/gesture_handler/src/main/ets/rnoh/RNGHRootViewController.ts +5 -5
- package/harmony/gesture_handler/src/main/ets/rnoh/RNGHView.ts +4 -0
- package/harmony/gesture_handler.har +0 -0
- package/package.json +1 -1
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* Use these variables when you tailor your ArkTS code. They must be of the const type.
|
3
3
|
*/
|
4
|
-
export const HAR_VERSION = '2.14.1-2.14.
|
4
|
+
export const HAR_VERSION = '2.14.1-2.14.16';
|
5
5
|
export const BUILD_MODE_NAME = 'release';
|
6
6
|
export const DEBUG = false;
|
7
7
|
export const TARGET_NAME = 'default';
|
@@ -5,14 +5,15 @@
|
|
5
5
|
"lockfileVersion": 3,
|
6
6
|
"ATTENTION": "THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.",
|
7
7
|
"specifiers": {
|
8
|
-
"@rnoh/react-native-openharmony
|
8
|
+
"@rnoh/react-native-openharmony@0.72.38": "@rnoh/react-native-openharmony@0.72.38"
|
9
9
|
},
|
10
10
|
"packages": {
|
11
|
-
"@rnoh/react-native-openharmony
|
11
|
+
"@rnoh/react-native-openharmony@0.72.38": {
|
12
12
|
"name": "@rnoh/react-native-openharmony",
|
13
|
-
"version": "0.72.
|
14
|
-
"
|
15
|
-
"
|
13
|
+
"version": "0.72.38",
|
14
|
+
"integrity": "sha512-br5SIrbB0OarSLirenleE7eTOX1lNccMJ7nb/G7qWTyJ7kW4DalmTXVKYpoT2qaOLls1uEE7McD1OjbZZM9jug==",
|
15
|
+
"resolved": "https://ohpm.openharmony.cn/ohpm/@rnoh/react-native-openharmony/-/react-native-openharmony-0.72.38.har",
|
16
|
+
"registryType": "ohpm"
|
16
17
|
}
|
17
18
|
}
|
18
19
|
}
|
@@ -5,8 +5,8 @@
|
|
5
5
|
name: '@react-native-oh-tpl/react-native-gesture-handler',
|
6
6
|
description: '',
|
7
7
|
type: 'module',
|
8
|
-
version: '2.14.1-2.14.
|
8
|
+
version: '2.14.1-2.14.16',
|
9
9
|
dependencies: {
|
10
|
-
"@rnoh/react-native-openharmony": "
|
10
|
+
"@rnoh/react-native-openharmony": "^0.72.32"
|
11
11
|
},
|
12
12
|
}
|
@@ -94,11 +94,10 @@ export class RNGHRootViewController {
|
|
94
94
|
// with the child bounding box ensures that the parent handlers are called correctly.
|
95
95
|
// This approach is slightly different from Android RNGH implementation (extracting parent gesture handlers),
|
96
96
|
// however, the outcome is the same.
|
97
|
-
for (let j = i; j >
|
98
|
-
const
|
99
|
-
|
100
|
-
|
101
|
-
parentView.attachChildrenBoundingRects(currentView);
|
97
|
+
for (let j = i - 1; j > 0; j--) {
|
98
|
+
const parentView = views[j];
|
99
|
+
if (parentView.intersectsWith(view)) {
|
100
|
+
parentView.attachChildrenBoundingRects(view);
|
102
101
|
}
|
103
102
|
}
|
104
103
|
}
|
@@ -118,6 +117,7 @@ export class RNGHRootViewController {
|
|
118
117
|
|
119
118
|
if (touchEvent.type === TouchType.Up || touchEvent.type === TouchType.Cancel) {
|
120
119
|
touchableViews.forEach(view => this.touchableViewsMultiset.remove(view));
|
120
|
+
views.forEach(view => view.resetChildrenBoundingRects());
|
121
121
|
}
|
122
122
|
}
|
123
123
|
|
@@ -57,6 +57,10 @@ export class RNGHView implements View {
|
|
57
57
|
this.boundingBox = boundingBox
|
58
58
|
}
|
59
59
|
|
60
|
+
resetChildrenBoundingRects() {
|
61
|
+
this.childrenBoundingBoxes.clear()
|
62
|
+
}
|
63
|
+
|
60
64
|
attachChildrenBoundingRects(view: RNGHView) {
|
61
65
|
this.childrenBoundingBoxes.add(view.getBoundingRect())
|
62
66
|
for (const childBoundingBox of view.getChildrenBoundingRects()) {
|
Binary file
|
package/package.json
CHANGED
@@ -12,7 +12,7 @@
|
|
12
12
|
"type": "git",
|
13
13
|
"url": "https://github.com/react-native-oh-library/react-native-harmony-gesture-handler.git"
|
14
14
|
},
|
15
|
-
"version": "2.14.1-2.14.
|
15
|
+
"version": "2.14.1-2.14.16",
|
16
16
|
"description": "",
|
17
17
|
"react-native": "src/index.ts",
|
18
18
|
"main": "lib/commonjs/index.js",
|