@lumx/react 3.9.4-alpha.4 → 3.9.4
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/index.js
CHANGED
|
@@ -8259,6 +8259,7 @@ function usePointerZoom(scrollAreaRef, onScaleChange, animateScroll) {
|
|
|
8259
8259
|
activePointers[event.pointerId] = event;
|
|
8260
8260
|
}
|
|
8261
8261
|
function onPointerMove(event) {
|
|
8262
|
+
var _pointers$;
|
|
8262
8263
|
// Update pointer in cache
|
|
8263
8264
|
if (activePointers[event.pointerId]) {
|
|
8264
8265
|
activePointers[event.pointerId] = event;
|
|
@@ -8266,7 +8267,7 @@ function usePointerZoom(scrollAreaRef, onScaleChange, animateScroll) {
|
|
|
8266
8267
|
const pointers = Object.values(activePointers);
|
|
8267
8268
|
|
|
8268
8269
|
// Make sure we run computation on one of the pointer in the group
|
|
8269
|
-
if (pointers[0]
|
|
8270
|
+
if (((_pointers$ = pointers[0]) === null || _pointers$ === void 0 ? void 0 : _pointers$.pointerId) !== event.pointerId) {
|
|
8270
8271
|
return;
|
|
8271
8272
|
}
|
|
8272
8273
|
|