gesturx 1.8.5 → 1.8.8

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/dist/index.d.ts CHANGED
@@ -2,6 +2,11 @@ import { BehaviorSubject } from 'rxjs';
2
2
  import { Observable } from 'rxjs';
3
3
  import { ObservedValueOf } from 'rxjs';
4
4
 
5
+ export declare interface FailWith {
6
+ start$: Observable<unknown>;
7
+ end$: Observable<unknown>;
8
+ }
9
+
5
10
  declare type PanConfig = {
6
11
  posThreshold?: number;
7
12
  delay?: number;
@@ -165,10 +170,7 @@ export declare type RecognizerConfig<Options> = {
165
170
  container?: HTMLElement;
166
171
  afterEventReceived?: (event: PointerEvent) => PointerEvent;
167
172
  options?: Options;
168
- failWith?: {
169
- start$: Observable<unknown>;
170
- end$: Observable<unknown>;
171
- }[];
173
+ failWith?: FailWith[];
172
174
  };
173
175
 
174
176
  declare interface RecognizerEvent {
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  var ie = Object.defineProperty;
2
2
  var se = (t, n, e) => n in t ? ie(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e;
3
3
  var $ = (t, n, e) => se(t, typeof n != "symbol" ? n + "" : n, e);
4
- import { filter as c, fromEvent as S, mergeMap as b, defer as pe, of as I, merge as g, takeWhile as V, scan as U, map as h, BehaviorSubject as q, switchMap as v, share as P, distinctUntilChanged as oe, startWith as re, shareReplay as M, combineLatest as j, exhaustMap as H, first as R, timer as J, withLatestFrom as z, takeUntil as T, skip as ae, tap as K, ignoreElements as le, buffer as he, debounceTime as ce, NEVER as $e, defaultIfEmpty as ue } from "rxjs";
4
+ import { filter as h, fromEvent as S, mergeMap as b, defer as pe, of as T, merge as g, takeWhile as V, scan as L, map as c, BehaviorSubject as q, switchMap as v, share as P, distinctUntilChanged as oe, startWith as re, shareReplay as M, combineLatest as j, exhaustMap as H, first as z, timer as J, withLatestFrom as C, takeUntil as I, skip as ae, tap as K, ignoreElements as le, buffer as he, debounceTime as ce, NEVER as $e, defaultIfEmpty as ue } from "rxjs";
5
5
  function de(t, n) {
6
6
  return Math.sqrt(
7
7
  Math.pow(n.x - t.x, 2) + Math.pow(n.y - t.y, 2)
@@ -52,7 +52,7 @@ function ye(t, n) {
52
52
  function fe(t) {
53
53
  return t != null;
54
54
  }
55
- const me = (t) => t.length > 0, Ae = (t) => t.pipe(c(me));
55
+ const me = (t) => t.length > 0, Ae = (t) => t.pipe(h(me));
56
56
  function Q(t, n, e) {
57
57
  const i = k([t]), o = k([n]);
58
58
  return Math.abs(o.x - i.x) >= e || Math.abs(o.y - i.y) >= e;
@@ -64,33 +64,33 @@ const De = (t, n, e) => {
64
64
  velocityY: o
65
65
  };
66
66
  };
67
- function W(t) {
67
+ function U(t) {
68
68
  return (n) => n.pipe(
69
- c((e) => e.pointerId === t.pointerId)
69
+ h((e) => e.pointerId === t.pointerId)
70
70
  );
71
71
  }
72
72
  const Z = (t) => t.type === "pointerleave" || t.type === "pointercancel" || t.type === "pointerup", Pe = ({
73
73
  container: t,
74
74
  afterEventReceived: n = (e) => e
75
75
  }) => S(t, "pointerdown").pipe(
76
- h(n)
76
+ c(n)
77
77
  ), ee = ({
78
78
  pointerEvent$: t
79
79
  }) => (n) => {
80
80
  const e = t.pipe(
81
- c((r) => r.type === "pointerup")
81
+ h((r) => r.type === "pointerup")
82
82
  ), i = t.pipe(
83
- c((r) => r.type === "pointerleave")
83
+ h((r) => r.type === "pointerleave")
84
84
  ), o = t.pipe(
85
- c((r) => r.type === "pointercancel")
85
+ h((r) => r.type === "pointercancel")
86
86
  ), p = t.pipe(
87
- c((r) => r.type === "pointermove")
87
+ h((r) => r.type === "pointermove")
88
88
  ), a = S(window, "contextmenu"), s = (r) => ["pointercancel", "pointerleave", "pointerup", "contextmenu"].includes(
89
89
  r.type
90
90
  );
91
91
  return n.pipe(
92
92
  b((r) => {
93
- const l = pe(() => I(r));
93
+ const l = pe(() => T(r));
94
94
  return g(
95
95
  l,
96
96
  g(
@@ -101,11 +101,11 @@ const Z = (t) => t.type === "pointerleave" || t.type === "pointercancel" || t.ty
101
101
  a
102
102
  )
103
103
  ).pipe(
104
- W(r),
104
+ U(r),
105
105
  V((m) => !s(m), !0)
106
106
  );
107
107
  }),
108
- U((r, l) => {
108
+ L((r, l) => {
109
109
  if (s(l)) {
110
110
  const { [l.pointerId]: u, ...m } = (r == null ? void 0 : r.pointers) ?? {};
111
111
  return {
@@ -121,7 +121,7 @@ const Z = (t) => t.type === "pointerleave" || t.type === "pointercancel" || t.ty
121
121
  }
122
122
  };
123
123
  }, void 0),
124
- h(({ event: r, pointers: l }) => ({
124
+ c(({ event: r, pointers: l }) => ({
125
125
  event: r,
126
126
  pointers: Object.values(l).filter(fe)
127
127
  }))
@@ -137,7 +137,7 @@ const Z = (t) => t.type === "pointerleave" || t.type === "pointercancel" || t.ty
137
137
  e.latestActivePointers.length ? e.latestActivePointers : [e.event]
138
138
  );
139
139
  return t.pipe(
140
- U((e, i) => {
140
+ L((e, i) => {
141
141
  var f, E;
142
142
  const o = n(i), p = (e == null ? void 0 : e.center) ?? o, a = (e == null ? void 0 : e.deltaX) ?? 0, s = (e == null ? void 0 : e.deltaY) ?? 0, r = ((f = e == null ? void 0 : e.latestActivePointers) == null ? void 0 : f.length) ?? 1, l = ((E = i.latestActivePointers) == null ? void 0 : E.length) ?? 1, u = ["pointerdown", "pointercancel", "pointerleave", "pointerup"].includes(
143
143
  i.event.type
@@ -155,7 +155,7 @@ const Z = (t) => t.type === "pointerleave" || t.type === "pointercancel" || t.ty
155
155
  deltaPointersAngle: D
156
156
  };
157
157
  }, void 0),
158
- h((e) => {
158
+ c((e) => {
159
159
  const {
160
160
  deltaX: i,
161
161
  deltaY: o,
@@ -181,23 +181,23 @@ const Z = (t) => t.type === "pointerleave" || t.type === "pointercancel" || t.ty
181
181
  })
182
182
  );
183
183
  }, G = (t) => t.pipe(
184
- c(
184
+ h(
185
185
  (n) => !!n.container
186
186
  )
187
- ), ne = (t) => t.pipe(c(Z)), Ee = ({
187
+ ), ne = (t) => t.pipe(h(Z)), Ee = ({
188
188
  container: t,
189
189
  afterEventReceived: n = (e) => e
190
190
  }) => {
191
191
  const e = Pe({ afterEventReceived: n, container: t }), i = S(t, "pointerup").pipe(
192
- h(n)
192
+ c(n)
193
193
  ), o = S(t, "pointermove").pipe(
194
- h(n)
194
+ c(n)
195
195
  ), p = S(t, "pointerleave").pipe(
196
- h(n)
196
+ c(n)
197
197
  ), a = S(
198
198
  t,
199
199
  "pointercancel"
200
- ).pipe(h(n));
200
+ ).pipe(c(n));
201
201
  return {
202
202
  pointerEvents$: g(
203
203
  e,
@@ -244,30 +244,30 @@ class F {
244
244
  ),
245
245
  P()
246
246
  ), this.pointerDown$ = this.pointerEvent$.pipe(
247
- c((p) => p.type === "pointerdown")
247
+ h((p) => p.type === "pointerdown")
248
248
  ), this.pointerUp$ = this.pointerEvent$.pipe(
249
- c((p) => p.type === "pointerup")
249
+ h((p) => p.type === "pointerup")
250
250
  ), this.pointerMove$ = this.pointerEvent$.pipe(
251
- c((p) => p.type === "pointermove")
251
+ h((p) => p.type === "pointermove")
252
252
  ), this.pointerCancel$ = this.pointerEvent$.pipe(
253
- c((p) => p.type === "pointercancel")
253
+ h((p) => p.type === "pointercancel")
254
254
  ), this.pointerOff$ = this.pointerEvent$.pipe(ne);
255
255
  const o = this.config$.pipe(
256
- h(({ failWith: p }) => p),
256
+ c(({ failWith: p }) => p),
257
257
  oe()
258
258
  );
259
259
  this.failWithActive$ = o.pipe(
260
260
  v((p) => {
261
261
  const a = p == null ? void 0 : p.map((s) => {
262
- const r = s.start$.pipe(h(() => !0)), l = s.end$.pipe(h(() => !1));
262
+ const r = s.start$.pipe(c(() => !0)), l = s.end$.pipe(c(() => !1));
263
263
  return g(r, l).pipe(
264
264
  re(!1),
265
265
  M(1)
266
266
  );
267
267
  });
268
- return a != null && a.length ? j(a) : j([I(!1)]);
268
+ return a != null && a.length ? j(a) : j([T(!1)]);
269
269
  }),
270
- h((p) => p.some((a) => a)),
270
+ c((p) => p.some((a) => a)),
271
271
  M(1)
272
272
  ), this.pan$ = this.configSubject.pipe(
273
273
  G,
@@ -280,25 +280,25 @@ class F {
280
280
  }),
281
281
  M(1)
282
282
  ), u = (f) => f.pipe(
283
- c(
283
+ h(
284
284
  (E) => E.pointers.length >= a
285
285
  )
286
- ), m = (f) => f.pipe(c((E) => E.pointers.length < a));
286
+ ), m = (f) => f.pipe(h((E) => E.pointers.length < a));
287
287
  return l.pipe(
288
288
  u,
289
289
  H(({ pointers: f }) => {
290
290
  const E = l.pipe(
291
291
  m,
292
- R(),
292
+ z(),
293
293
  P()
294
- ), X = J(r), C = g(
295
- ...f.map((d) => I(d)),
294
+ ), X = J(r), R = g(
295
+ ...f.map((d) => T(d)),
296
296
  this.pointerDown$
297
297
  ).pipe(
298
298
  b(
299
- (d) => g(this.pointerMove$, I(d)).pipe(
300
- W(d),
301
- c(
299
+ (d) => g(this.pointerMove$, T(d)).pipe(
300
+ U(d),
301
+ h(
302
302
  (x) => Q(
303
303
  d,
304
304
  x,
@@ -307,11 +307,11 @@ class F {
307
307
  )
308
308
  )
309
309
  ),
310
- R()
310
+ z()
311
311
  ).pipe(
312
312
  v(() => X),
313
- z(l),
314
- h(([, { event: d, pointers: x }]) => ({
313
+ C(l),
314
+ c(([, { event: d, pointers: x }]) => ({
315
315
  type: "start",
316
316
  event: d,
317
317
  latestActivePointers: x
@@ -320,36 +320,36 @@ class F {
320
320
  bufferSize: 1,
321
321
  refCount: !1
322
322
  }),
323
- T(E)
324
- ), O = C.pipe(
323
+ I(E)
324
+ ), O = R.pipe(
325
325
  b(
326
326
  () => l.pipe(
327
327
  ae(1),
328
- h(({ event: d, pointers: x }) => ({
328
+ c(({ event: d, pointers: x }) => ({
329
329
  type: "move",
330
330
  event: d,
331
331
  latestActivePointers: x
332
332
  }))
333
333
  )
334
334
  ),
335
- T(E)
336
- ), w = C.pipe(
335
+ I(E)
336
+ ), w = R.pipe(
337
337
  b(
338
338
  () => E.pipe(
339
- h(({ event: d, pointers: x }) => ({
339
+ c(({ event: d, pointers: x }) => ({
340
340
  type: "end",
341
341
  event: d,
342
342
  latestActivePointers: x
343
343
  }))
344
344
  )
345
345
  )
346
- ), L = g(C, O, w).pipe(
346
+ ), W = g(R, O, w).pipe(
347
347
  M(1)
348
348
  );
349
- return L.pipe(
349
+ return W.pipe(
350
350
  te,
351
- z(L),
352
- h(([d, { type: x }]) => ({
351
+ C(W),
352
+ c(([d, { type: x }]) => ({
353
353
  ...d,
354
354
  type: x
355
355
  }))
@@ -364,14 +364,14 @@ class F {
364
364
  }),
365
365
  P()
366
366
  ), this.panStart$ = this.pan$.pipe(
367
- c((p) => p.type === "start"),
368
- h(({ type: p, ...a }) => a)
367
+ h((p) => p.type === "start"),
368
+ c(({ type: p, ...a }) => a)
369
369
  ), this.panMove$ = this.pan$.pipe(
370
- c((p) => p.type === "move"),
371
- h(({ type: p, ...a }) => a)
370
+ h((p) => p.type === "move"),
371
+ c(({ type: p, ...a }) => a)
372
372
  ), this.panEnd$ = this.pan$.pipe(
373
- c((p) => p.type === "end"),
374
- h(({ type: p, ...a }) => a)
373
+ h((p) => p.type === "end"),
374
+ c(({ type: p, ...a }) => a)
375
375
  ), this.state$ = i.asObservable(), this.updateInternal(n ?? {}, e);
376
376
  }
377
377
  updateInternal(n, e) {
@@ -403,22 +403,22 @@ class Se extends F {
403
403
  $(this, "start$");
404
404
  $(this, "end$");
405
405
  const i = this.panStart$.pipe(
406
- h((s) => ({
406
+ c((s) => ({
407
407
  type: "panStart",
408
408
  ...s
409
409
  })),
410
- z(this.failWithActive$),
411
- c(([, s]) => !s),
412
- h(([s]) => s),
410
+ C(this.failWithActive$),
411
+ h(([, s]) => !s),
412
+ c(([s]) => s),
413
413
  P()
414
414
  ), o = this.panEnd$.pipe(
415
- h((s) => ({
415
+ c((s) => ({
416
416
  type: "panEnd",
417
417
  ...s
418
418
  })),
419
419
  P()
420
420
  ), p = this.panMove$.pipe(
421
- h((s) => ({
421
+ c((s) => ({
422
422
  type: "panMove",
423
423
  ...s
424
424
  }))
@@ -426,34 +426,34 @@ class Se extends F {
426
426
  this.events$ = i.pipe(
427
427
  v((s) => {
428
428
  let r = s;
429
- const l = I(s), u = this.failWithActive$.pipe(
430
- c((A) => A),
431
- R()
429
+ const l = T(s), u = this.failWithActive$.pipe(
430
+ h((A) => A),
431
+ z()
432
432
  ), m = g(l, p, o).pipe(
433
433
  K((A) => {
434
434
  r = A;
435
435
  }),
436
- T(u)
436
+ I(u)
437
437
  ), y = u.pipe(
438
- h(() => ({
438
+ c(() => ({
439
439
  ...r,
440
440
  type: "panEnd"
441
441
  })),
442
- T(o)
442
+ I(o)
443
443
  );
444
444
  return g(m, y);
445
445
  }),
446
446
  P()
447
447
  ), this.start$ = this.events$.pipe(
448
- c((s) => s.type === "panStart")
449
- ), this.end$ = this.events$.pipe(c((s) => s.type === "panEnd"));
448
+ h((s) => s.type === "panStart")
449
+ ), this.end$ = this.events$.pipe(h((s) => s.type === "panEnd"));
450
450
  }
451
451
  update(e) {
452
452
  super.update(e, e.options);
453
453
  }
454
454
  }
455
455
  const we = (t) => (n) => n.pipe(
456
- c((e) => Math.abs(e.velocityX) >= t || Math.abs(e.velocityY) >= t)
456
+ h((e) => Math.abs(e.velocityX) >= t || Math.abs(e.velocityY) >= t)
457
457
  );
458
458
  class be extends F {
459
459
  constructor(e) {
@@ -466,16 +466,21 @@ class be extends F {
466
466
  v((i) => {
467
467
  const { escapeVelocity: o = 0.9 } = i.options ?? {};
468
468
  return this.panStart$.pipe(
469
- v((p) => this.panEnd$.pipe(
469
+ C(this.failWithActive$),
470
+ h(([, p]) => !p),
471
+ v(([p]) => this.panEnd$.pipe(
470
472
  we(o),
471
- h((a) => ({
473
+ c((a) => ({
472
474
  type: "swipe",
473
475
  angle: ge(
474
476
  p.event,
475
477
  a.event
476
478
  ),
477
479
  ...a
478
- }))
480
+ })),
481
+ I(
482
+ this.failWithActive$.pipe(h((a) => a))
483
+ )
479
484
  )),
480
485
  P()
481
486
  );
@@ -492,8 +497,8 @@ const Me = ({
492
497
  }) => (e) => e.pipe(
493
498
  b(
494
499
  (i) => J(t).pipe(
495
- T(
496
- n.pipe(ne, W(i))
500
+ I(
501
+ n.pipe(ne, U(i))
497
502
  )
498
503
  )
499
504
  )
@@ -504,9 +509,9 @@ const Me = ({
504
509
  }) => (i) => i.pipe(
505
510
  b(
506
511
  (o) => n.pipe(
507
- W(o),
512
+ U(o),
508
513
  V((p) => !Z(p), !0),
509
- c(
514
+ h(
510
515
  (p) => Q(t, p, e)
511
516
  )
512
517
  )
@@ -526,10 +531,10 @@ class Ce extends F {
526
531
  }),
527
532
  M(1)
528
533
  ), l = r.pipe(
529
- c(({ pointers: D }) => D.length > 1)
534
+ h(({ pointers: D }) => D.length > 1)
530
535
  ), u = (D) => D.pipe(
531
536
  he(this.pointerUp$.pipe(ce(p))),
532
- R()
537
+ z()
533
538
  );
534
539
  return g(
535
540
  this.pointerDown$,
@@ -537,7 +542,7 @@ class Ce extends F {
537
542
  ).pipe(
538
543
  H((D) => {
539
544
  const f = g(
540
- I(D),
545
+ T(D),
541
546
  this.pointerDown$
542
547
  ).pipe(M(1)), E = f.pipe(u), X = f.pipe(
543
548
  xe({
@@ -550,16 +555,16 @@ class Ce extends F {
550
555
  pointerEvent$: this.pointerEvent$,
551
556
  timeout: a
552
557
  })
553
- ), C = g(
554
- this.failWithActive$.pipe(c((w) => w)),
558
+ ), R = g(
559
+ this.failWithActive$.pipe(h((w) => w)),
555
560
  this.pointerCancel$,
556
561
  l,
557
562
  X,
558
563
  B
559
564
  ), O = E.pipe(
560
565
  Ae,
561
- c((w) => w.length <= o),
562
- h((w) => ({
566
+ h((w) => w.length <= o),
567
+ c((w) => ({
563
568
  type: "tap",
564
569
  taps: w.length,
565
570
  latestActivePointers: w,
@@ -569,13 +574,13 @@ class Ce extends F {
569
574
  );
570
575
  return O.pipe(
571
576
  te,
572
- z(O),
573
- h(([w, { type: L, taps: d }]) => ({
577
+ C(O),
578
+ c(([w, { type: W, taps: d }]) => ({
574
579
  ...w,
575
- type: L,
580
+ type: W,
576
581
  taps: d
577
582
  })),
578
- T(C)
583
+ I(R)
579
584
  );
580
585
  })
581
586
  );
@@ -598,7 +603,7 @@ class Re extends F {
598
603
  this.events$ = this.config$.pipe(
599
604
  v(() => {
600
605
  const i = this.panStart$.pipe(
601
- h((s) => ({
606
+ c((s) => ({
602
607
  ...s,
603
608
  type: "rotateStart",
604
609
  angle: 0,
@@ -608,7 +613,7 @@ class Re extends F {
608
613
  ), o = i.pipe(
609
614
  v(
610
615
  () => this.pan$.pipe(
611
- U((s, r) => {
616
+ L((s, r) => {
612
617
  const l = ((s == null ? void 0 : s.angle) ?? 0) + r.deltaPointersAngle;
613
618
  return {
614
619
  ...s,
@@ -621,11 +626,11 @@ class Re extends F {
621
626
  ),
622
627
  P()
623
628
  ), p = o.pipe(
624
- c((s) => s.type === "move"),
625
- h((s) => ({ ...s, type: "rotateMove" }))
629
+ h((s) => s.type === "move"),
630
+ c((s) => ({ ...s, type: "rotateMove" }))
626
631
  ), a = o.pipe(
627
- c((s) => s.type === "end"),
628
- h((s) => ({ ...s, type: "rotateEnd" }))
632
+ h((s) => s.type === "end"),
633
+ c((s) => ({ ...s, type: "rotateEnd" }))
629
634
  );
630
635
  return g(i, p, a);
631
636
  }),
@@ -640,7 +645,7 @@ const Y = ({
640
645
  type: t,
641
646
  initialEvent: n
642
647
  }) => (e) => e.pipe(
643
- U((i, o) => {
648
+ L((i, o) => {
644
649
  const a = ((i == null ? void 0 : i.pointers.length) ?? 0) !== o.pointers.length, s = (i == null ? void 0 : i.pointersAverageDistance) ?? o.pointersAverageDistance, r = a ? o.pointersAverageDistance : i && "initialPointersAverageDistance" in i ? i.initialPointersAverageDistance : o.pointersAverageDistance, l = r === 0 ? 1 : o.pointersAverageDistance / r, u = o.pointersAverageDistance - r, m = o.pointersAverageDistance - r, y = a || s === 0 ? 1 : o.pointersAverageDistance / s;
645
650
  return {
646
651
  ...i,
@@ -653,7 +658,7 @@ const Y = ({
653
658
  deltaDistanceScale: y
654
659
  };
655
660
  }, n),
656
- h(({ initialPointersAverageDistance: i, ...o }) => o)
661
+ c(({ initialPointersAverageDistance: i, ...o }) => o)
657
662
  );
658
663
  class ze extends F {
659
664
  constructor(e) {
@@ -667,11 +672,11 @@ class ze extends F {
667
672
  this.events$ = this.config$.pipe(
668
673
  v(() => {
669
674
  const i = this.panStart$.pipe(
670
- z(this.failWithActive$),
671
- c(([, s]) => !s),
672
- h(([s]) => s),
675
+ C(this.failWithActive$),
676
+ h(([, s]) => !s),
677
+ c(([s]) => s),
673
678
  v(
674
- (s) => I(s).pipe(
679
+ (s) => T(s).pipe(
675
680
  // we don't want a scan on pinch start
676
681
  Y({
677
682
  type: "pinchStart",
@@ -681,8 +686,8 @@ class ze extends F {
681
686
  ),
682
687
  M(1)
683
688
  ), o = this.failWithActive$.pipe(
684
- c((s) => s),
685
- R()
689
+ h((s) => s),
690
+ z()
686
691
  ), p = i.pipe(
687
692
  v((s) => this.pan$.pipe(
688
693
  V((r) => r.type !== "end"),
@@ -691,15 +696,15 @@ class ze extends F {
691
696
  initialEvent: s
692
697
  })
693
698
  )),
694
- T(o)
699
+ I(o)
695
700
  ), a = i.pipe(
696
701
  v((s) => {
697
702
  let r = s;
698
703
  return this.pan$.pipe(
699
- v((l) => l.type === "end" ? I(l) : (r = l, $e)),
700
- T(o),
704
+ v((l) => l.type === "end" ? T(l) : (r = l, $e)),
705
+ I(o),
701
706
  ue(null),
702
- h(
707
+ c(
703
708
  (l) => l || r
704
709
  ),
705
710
  Y({
@@ -714,8 +719,8 @@ class ze extends F {
714
719
  }),
715
720
  P()
716
721
  ), this.start$ = this.events$.pipe(
717
- c((i) => i.type === "pinchStart")
718
- ), this.end$ = this.events$.pipe(c((i) => i.type === "pinchEnd"));
722
+ h((i) => i.type === "pinchStart")
723
+ ), this.end$ = this.events$.pipe(h((i) => i.type === "pinchEnd"));
719
724
  }
720
725
  update(e) {
721
726
  super.update(e, e.options);
@@ -731,7 +736,7 @@ class ke {
731
736
  ).pipe(P()), this.state$ = j(
732
737
  this.recognizers.map((e) => e.state$)
733
738
  ).pipe(
734
- h(
739
+ c(
735
740
  (e) => e.reduce((i, o) => ({
736
741
  fingers: Math.max(i.fingers, o.fingers)
737
742
  }))