@nativescript-community/gesturehandler 2.0.33 → 2.0.34
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
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nativescript-community/gesturehandler",
|
3
|
-
"version": "2.0.
|
3
|
+
"version": "2.0.34",
|
4
4
|
"description": "Declarative API exposing platform native touch and gesture system to NativeScript.",
|
5
5
|
"main": "gesturehandler",
|
6
6
|
"sideEffects": false,
|
@@ -48,5 +48,5 @@
|
|
48
48
|
"dependencies": {
|
49
49
|
"@nativescript-community/observable": "^2.0.10"
|
50
50
|
},
|
51
|
-
"gitHead": "
|
51
|
+
"gitHead": "0263de76f516937edf94ca59ea4d367c15c7fc75"
|
52
52
|
}
|
@@ -226,20 +226,20 @@ public class GestureHandler<T extends GestureHandler> {
|
|
226
226
|
if (isTrackingPointer(pointerId)) {
|
227
227
|
return;
|
228
228
|
}
|
229
|
-
|
230
|
-
|
229
|
+
mTrackedPointerIDs[pointerId] = findNextLocalPointerId();
|
230
|
+
mTrackedPointersCount++;
|
231
231
|
}
|
232
232
|
|
233
233
|
public void stopTrackingPointer(int pointerId) {
|
234
234
|
if (!isTrackingPointer(pointerId)) {
|
235
235
|
return;
|
236
236
|
}
|
237
|
-
|
238
|
-
|
237
|
+
mTrackedPointerIDs[pointerId] = -1;
|
238
|
+
mTrackedPointersCount--;
|
239
239
|
}
|
240
240
|
|
241
241
|
private boolean isTrackingPointer(int pointerId) {
|
242
|
-
return
|
242
|
+
return mTrackedPointerIDs[pointerId] != -1;
|
243
243
|
}
|
244
244
|
|
245
245
|
private boolean needAdapt(MotionEvent event) {
|