@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.
@@ -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.15';
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@../react_native_openharmony.har": "@rnoh/react-native-openharmony@../react_native_openharmony.har"
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@../react_native_openharmony.har": {
11
+ "@rnoh/react-native-openharmony@0.72.38": {
12
12
  "name": "@rnoh/react-native-openharmony",
13
- "version": "0.72.35",
14
- "resolved": "../react_native_openharmony.har",
15
- "registryType": "local"
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.15',
8
+ version: '2.14.1-2.14.16',
9
9
  dependencies: {
10
- "@rnoh/react-native-openharmony": "file:../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 > 1; j--) {
98
- const currentView = views[j];
99
- const parentView = views[j-1];
100
- if (parentView.intersectsWith(currentView)) {
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",
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",