gesturx 1.8.9 → 1.8.10

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.js CHANGED
@@ -1,11 +1,9 @@
1
1
  var ie = Object.defineProperty;
2
2
  var se = (t, i, e) => i in t ? ie(t, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[i] = e;
3
3
  var $ = (t, i, e) => se(t, typeof i != "symbol" ? i + "" : i, e);
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";
4
+ import { filter as h, fromEvent as S, mergeMap as b, defer as pe, of as T, merge as y, takeWhile as V, scan as L, map as c, BehaviorSubject as q, switchMap as g, 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, i) {
6
- return Math.sqrt(
7
- Math.pow(i.x - t.x, 2) + Math.pow(i.y - t.y, 2)
8
- );
6
+ return Math.sqrt((i.x - t.x) ** 2 + (i.y - t.y) ** 2);
9
7
  }
10
8
  function ve(t) {
11
9
  const i = t.length;
@@ -20,7 +18,7 @@ function N(t, i) {
20
18
  function ge(t, i) {
21
19
  return N(t, i) * (180 / Math.PI);
22
20
  }
23
- function k(t) {
21
+ function F(t) {
24
22
  const i = t.reduce(
25
23
  (n, o) => (n.x += o.x, n.y += o.y, n),
26
24
  { x: 0, y: 0 }
@@ -33,19 +31,19 @@ function k(t) {
33
31
  function ye(t, i) {
34
32
  if (t.length !== i.length)
35
33
  throw new Error("Initial and new points arrays must have the same length.");
36
- const e = k(t), n = k(i);
34
+ const e = F(t), n = F(i);
37
35
  let o = 0;
38
- for (let s = 0; s < t.length; s++) {
39
- const r = N(
36
+ t.forEach((s, r) => {
37
+ const l = N(
40
38
  e,
41
- t[s]
39
+ s
42
40
  );
43
41
  let u = N(
44
42
  n,
45
- i[s]
46
- ) - r;
43
+ i[r] ?? s
44
+ ) - l;
47
45
  u > Math.PI ? u -= 2 * Math.PI : u < -Math.PI && (u += 2 * Math.PI), o += u;
48
- }
46
+ });
49
47
  const p = o / t.length, a = p * (180 / Math.PI);
50
48
  return { radianDelta: p, degreesDelta: a };
51
49
  }
@@ -54,7 +52,7 @@ function fe(t) {
54
52
  }
55
53
  const me = (t) => t.length > 0, Ae = (t) => t.pipe(h(me));
56
54
  function Q(t, i, e) {
57
- const n = k([t]), o = k([i]);
55
+ const n = F([t]), o = F([i]);
58
56
  return Math.abs(o.x - n.x) >= e || Math.abs(o.y - n.y) >= e;
59
57
  }
60
58
  const De = (t, i, e) => {
@@ -91,9 +89,9 @@ const Z = (t) => t.type === "pointerleave" || t.type === "pointercancel" || t.ty
91
89
  return i.pipe(
92
90
  b((r) => {
93
91
  const l = pe(() => T(r));
94
- return g(
92
+ return y(
95
93
  l,
96
- g(
94
+ y(
97
95
  p,
98
96
  o,
99
97
  n,
@@ -102,15 +100,15 @@ const Z = (t) => t.type === "pointerleave" || t.type === "pointercancel" || t.ty
102
100
  )
103
101
  ).pipe(
104
102
  U(r),
105
- V((m) => !s(m), !0)
103
+ V((u) => !s(u), !0)
106
104
  );
107
105
  }),
108
106
  L((r, l) => {
109
107
  if (s(l)) {
110
- const { [l.pointerId]: u, ...m } = (r == null ? void 0 : r.pointers) ?? {};
108
+ const { [l.pointerId]: d, ...u } = (r == null ? void 0 : r.pointers) ?? {};
111
109
  return {
112
110
  event: l,
113
- pointers: m
111
+ pointers: u
114
112
  };
115
113
  }
116
114
  return {
@@ -126,26 +124,30 @@ const Z = (t) => t.type === "pointerleave" || t.type === "pointercancel" || t.ty
126
124
  pointers: Object.values(l).filter(fe)
127
125
  }))
128
126
  );
129
- }, _ = (t, i, e, n) => {
127
+ }, _ = (t) => t.pipe(
128
+ h(
129
+ (i) => !!i.container
130
+ )
131
+ ), te = (t) => t.pipe(h(Z)), G = (t, i, e, n) => {
130
132
  const o = t.x - i.x + e, p = t.y - i.y + n;
131
133
  return {
132
134
  deltaX: o,
133
135
  deltaY: p
134
136
  };
135
- }, te = (t) => {
136
- const i = (e) => k(
137
+ }, ne = (t) => {
138
+ const i = (e) => F(
137
139
  e.latestActivePointers.length ? e.latestActivePointers : [e.event]
138
140
  );
139
141
  return t.pipe(
140
142
  L((e, n) => {
141
- var f, E;
142
- const o = i(n), 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 = n.latestActivePointers) == null ? void 0 : E.length) ?? 1, u = ["pointerdown", "pointercancel", "pointerleave", "pointerup"].includes(
143
+ var m, E;
144
+ const o = i(n), 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 = ((m = e == null ? void 0 : e.latestActivePointers) == null ? void 0 : m.length) ?? 1, l = ((E = n.latestActivePointers) == null ? void 0 : E.length) ?? 1, d = ["pointerdown", "pointercancel", "pointerleave", "pointerup"].includes(
143
145
  n.event.type
144
- ) && r !== l, m = l > 0, { deltaX: y, deltaY: A } = u && m || /**
146
+ ) && r !== l, u = l > 0, { deltaX: f, deltaY: A } = d && u || /**
145
147
  * A pointercancel cean come after a drag event and heven being completely
146
148
  * desync, leading to erroned values. We should just ignore it.
147
149
  */
148
- n.event.type === "pointercancel" ? _(o, o, a, s) : _(o, p, a, s), { degreesDelta: D } = r === l && r >= 2 && l >= 2 && /**
150
+ n.event.type === "pointercancel" ? G(o, o, a, s) : G(o, p, a, s), { degreesDelta: D } = r === l && r >= 2 && l >= 2 && /**
149
151
  * A pointercancel cean come after a drag event and heven being completely
150
152
  * desync, leading to erroned values. We should just ignore it.
151
153
  */
@@ -158,7 +160,7 @@ const Z = (t) => t.type === "pointerleave" || t.type === "pointercancel" || t.ty
158
160
  ...e,
159
161
  ...n,
160
162
  center: o,
161
- deltaX: y,
163
+ deltaX: f,
162
164
  deltaY: A,
163
165
  deltaPointersAngle: D
164
166
  };
@@ -172,27 +174,23 @@ const Z = (t) => t.type === "pointerleave" || t.type === "pointercancel" || t.ty
172
174
  center: s,
173
175
  event: r,
174
176
  deltaPointersAngle: l
175
- } = e, u = p ?? [], y = Date.now() - a, { velocityX: A, velocityY: D } = De(y, n, o), f = ve(p);
177
+ } = e, d = p ?? [], f = Date.now() - a, { velocityX: A, velocityY: D } = De(f, n, o), m = ve(p);
176
178
  return {
177
179
  deltaX: n,
178
180
  deltaY: o,
179
181
  velocityX: A,
180
182
  velocityY: D,
181
- delay: y,
183
+ delay: f,
182
184
  center: s,
183
- pointers: u,
185
+ pointers: d,
184
186
  startTime: a,
185
187
  event: r,
186
188
  deltaPointersAngle: l,
187
- pointersAverageDistance: f
189
+ pointersAverageDistance: m
188
190
  };
189
191
  })
190
192
  );
191
- }, G = (t) => t.pipe(
192
- h(
193
- (i) => !!i.container
194
- )
195
- ), ne = (t) => t.pipe(h(Z)), Ee = ({
193
+ }, Ee = ({
196
194
  container: t,
197
195
  afterEventReceived: i = (e) => e
198
196
  }) => {
@@ -207,7 +205,7 @@ const Z = (t) => t.type === "pointerleave" || t.type === "pointercancel" || t.ty
207
205
  "pointercancel"
208
206
  ).pipe(c(i));
209
207
  return {
210
- pointerEvents$: g(
208
+ pointerEvents$: y(
211
209
  e,
212
210
  a,
213
211
  p,
@@ -221,7 +219,7 @@ const Z = (t) => t.type === "pointerleave" || t.type === "pointercancel" || t.ty
221
219
  pointerMove$: o
222
220
  };
223
221
  };
224
- class F {
222
+ class O {
225
223
  constructor(i, e) {
226
224
  $(this, "configSubject", new q({}));
227
225
  $(this, "pan$");
@@ -235,7 +233,7 @@ class F {
235
233
  $(this, "pointerMove$");
236
234
  $(this, "pointerOff$");
237
235
  $(this, "state$");
238
- $(this, "config$", this.configSubject.pipe(G));
236
+ $(this, "config$", this.configSubject.pipe(_));
239
237
  /**
240
238
  * Track active running failWith recognizers
241
239
  */
@@ -244,7 +242,7 @@ class F {
244
242
  fingers: 0
245
243
  });
246
244
  this.pointerEvent$ = this.config$.pipe(
247
- v(
245
+ g(
248
246
  ({ container: p, afterEventReceived: a }) => Ee({
249
247
  container: p,
250
248
  afterEventReceived: a
@@ -259,16 +257,16 @@ class F {
259
257
  h((p) => p.type === "pointermove")
260
258
  ), this.pointerCancel$ = this.pointerEvent$.pipe(
261
259
  h((p) => p.type === "pointercancel")
262
- ), this.pointerOff$ = this.pointerEvent$.pipe(ne);
260
+ ), this.pointerOff$ = this.pointerEvent$.pipe(te);
263
261
  const o = this.config$.pipe(
264
262
  c(({ failWith: p }) => p),
265
263
  oe()
266
264
  );
267
265
  this.failWithActive$ = o.pipe(
268
- v((p) => {
266
+ g((p) => {
269
267
  const a = p == null ? void 0 : p.map((s) => {
270
268
  const r = s.start$.pipe(c(() => !0)), l = s.end$.pipe(c(() => !1));
271
- return g(r, l).pipe(
269
+ return y(r, l).pipe(
272
270
  re(!1),
273
271
  M(1)
274
272
  );
@@ -278,37 +276,36 @@ class F {
278
276
  c((p) => p.some((a) => a)),
279
277
  M(1)
280
278
  ), this.pan$ = this.configSubject.pipe(
281
- G,
282
- v((p) => {
283
- var y, A, D;
284
- const a = Math.max(1, ((y = p.panConfig) == null ? void 0 : y.numInputs) ?? 1), s = Math.max(0, ((A = p.panConfig) == null ? void 0 : A.posThreshold) ?? 0), r = Math.max(0, ((D = p.panConfig) == null ? void 0 : D.delay) ?? 0), l = this.pointerDown$.pipe(
279
+ _,
280
+ g((p) => {
281
+ var f, A, D;
282
+ const a = Math.max(1, ((f = p.panConfig) == null ? void 0 : f.numInputs) ?? 1), s = Math.max(0, ((A = p.panConfig) == null ? void 0 : A.posThreshold) ?? 0), r = Math.max(0, ((D = p.panConfig) == null ? void 0 : D.delay) ?? 0), l = this.pointerDown$.pipe(
285
283
  ee({
286
- pointerEvent$: this.pointerEvent$,
287
- trackMove: !0
284
+ pointerEvent$: this.pointerEvent$
288
285
  }),
289
286
  M(1)
290
- ), u = (f) => f.pipe(
287
+ ), d = (m) => m.pipe(
291
288
  h(
292
289
  (E) => E.pointers.length >= a
293
290
  )
294
- ), m = (f) => f.pipe(h((E) => E.pointers.length < a));
291
+ ), u = (m) => m.pipe(h((E) => E.pointers.length < a));
295
292
  return l.pipe(
296
- u,
297
- H(({ pointers: f }) => {
293
+ d,
294
+ H(({ pointers: m }) => {
298
295
  const E = l.pipe(
299
- m,
296
+ u,
300
297
  z(),
301
298
  P()
302
- ), X = J(r), R = g(
303
- ...f.map((d) => T(d)),
299
+ ), X = J(r), R = y(
300
+ ...m.map((v) => T(v)),
304
301
  this.pointerDown$
305
302
  ).pipe(
306
303
  b(
307
- (d) => g(this.pointerMove$, T(d)).pipe(
308
- U(d),
304
+ (v) => y(this.pointerMove$, T(v)).pipe(
305
+ U(v),
309
306
  h(
310
307
  (x) => Q(
311
- d,
308
+ v,
312
309
  x,
313
310
  s
314
311
  )
@@ -317,11 +314,11 @@ class F {
317
314
  ),
318
315
  z()
319
316
  ).pipe(
320
- v(() => X),
317
+ g(() => X),
321
318
  C(l),
322
- c(([, { event: d, pointers: x }]) => ({
319
+ c(([, { event: v, pointers: x }]) => ({
323
320
  type: "start",
324
- event: d,
321
+ event: v,
325
322
  latestActivePointers: x
326
323
  })),
327
324
  M({
@@ -329,13 +326,13 @@ class F {
329
326
  refCount: !1
330
327
  }),
331
328
  I(E)
332
- ), O = R.pipe(
329
+ ), k = R.pipe(
333
330
  b(
334
331
  () => l.pipe(
335
332
  ae(1),
336
- c(({ event: d, pointers: x }) => ({
333
+ c(({ event: v, pointers: x }) => ({
337
334
  type: "move",
338
- event: d,
335
+ event: v,
339
336
  latestActivePointers: x
340
337
  }))
341
338
  )
@@ -344,21 +341,21 @@ class F {
344
341
  ), w = R.pipe(
345
342
  b(
346
343
  () => E.pipe(
347
- c(({ event: d, pointers: x }) => ({
344
+ c(({ event: v, pointers: x }) => ({
348
345
  type: "end",
349
- event: d,
346
+ event: v,
350
347
  latestActivePointers: x
351
348
  }))
352
349
  )
353
350
  )
354
- ), W = g(R, O, w).pipe(
351
+ ), W = y(R, k, w).pipe(
355
352
  M(1)
356
353
  );
357
354
  return W.pipe(
358
- te,
355
+ ne,
359
356
  C(W),
360
- c(([d, { type: x }]) => ({
361
- ...d,
357
+ c(([v, { type: x }]) => ({
358
+ ...v,
362
359
  type: x
363
360
  }))
364
361
  );
@@ -400,7 +397,7 @@ class F {
400
397
  this.updateInternal(i, e);
401
398
  }
402
399
  }
403
- class Se extends F {
400
+ class Se extends O {
404
401
  constructor(e) {
405
402
  var a;
406
403
  super(e, {
@@ -432,24 +429,24 @@ class Se extends F {
432
429
  }))
433
430
  );
434
431
  this.events$ = n.pipe(
435
- v((s) => {
432
+ g((s) => {
436
433
  let r = s;
437
- const l = T(s), u = this.failWithActive$.pipe(
434
+ const l = T(s), d = this.failWithActive$.pipe(
438
435
  h((A) => A),
439
436
  z()
440
- ), m = g(l, p, o).pipe(
437
+ ), u = y(l, p, o).pipe(
441
438
  K((A) => {
442
439
  r = A;
443
440
  }),
444
- I(u)
445
- ), y = u.pipe(
441
+ I(d)
442
+ ), f = d.pipe(
446
443
  c(() => ({
447
444
  ...r,
448
445
  type: "panEnd"
449
446
  })),
450
447
  I(o)
451
448
  );
452
- return g(m, y);
449
+ return y(u, f);
453
450
  }),
454
451
  P()
455
452
  ), this.start$ = this.events$.pipe(
@@ -463,7 +460,7 @@ class Se extends F {
463
460
  const we = (t) => (i) => i.pipe(
464
461
  h((e) => Math.abs(e.velocityX) >= t || Math.abs(e.velocityY) >= t)
465
462
  );
466
- class be extends F {
463
+ class be extends O {
467
464
  constructor(e) {
468
465
  super(e, {
469
466
  posThreshold: 0,
@@ -471,12 +468,12 @@ class be extends F {
471
468
  });
472
469
  $(this, "events$");
473
470
  this.events$ = this.config$.pipe(
474
- v((n) => {
471
+ g((n) => {
475
472
  const { escapeVelocity: o = 0.9 } = n.options ?? {};
476
473
  return this.panStart$.pipe(
477
474
  C(this.failWithActive$),
478
475
  h(([, p]) => !p),
479
- v(([p]) => this.panEnd$.pipe(
476
+ g(([p]) => this.panEnd$.pipe(
480
477
  we(o),
481
478
  c((a) => ({
482
479
  type: "swipe",
@@ -506,7 +503,7 @@ const Me = ({
506
503
  b(
507
504
  (n) => J(t).pipe(
508
505
  I(
509
- i.pipe(ne, U(n))
506
+ i.pipe(te, U(n))
510
507
  )
511
508
  )
512
509
  )
@@ -525,51 +522,50 @@ const Me = ({
525
522
  )
526
523
  )
527
524
  );
528
- class Ce extends F {
525
+ class Ce extends O {
529
526
  constructor(e) {
530
527
  super(e);
531
528
  $(this, "events$");
532
529
  this.events$ = this.config$.pipe(
533
- v((n) => {
534
- var y, A;
535
- const o = ((y = n.options) == null ? void 0 : y.maxTaps) ?? 1, p = ((A = n.options) == null ? void 0 : A.multiTapThreshold) ?? 100 * (o - 1), { maximumPressTime: a = 150, tolerance: s = 10 } = n.options ?? {}, r = this.pointerDown$.pipe(
530
+ g((n) => {
531
+ var f, A;
532
+ const o = ((f = n.options) == null ? void 0 : f.maxTaps) ?? 1, p = ((A = n.options) == null ? void 0 : A.multiTapThreshold) ?? 100 * (o - 1), { maximumPressTime: a = 150, tolerance: s = 10 } = n.options ?? {}, r = this.pointerDown$.pipe(
536
533
  ee({
537
- pointerEvent$: this.pointerEvent$,
538
- trackMove: !0
534
+ pointerEvent$: this.pointerEvent$
539
535
  }),
540
536
  M(1)
541
537
  ), l = r.pipe(
542
538
  h(({ pointers: D }) => D.length > 1)
543
- ), u = (D) => D.pipe(
539
+ ), d = (D) => D.pipe(
544
540
  he(this.pointerUp$.pipe(ce(p))),
545
541
  z()
546
542
  );
547
- return g(
543
+ return y(
548
544
  this.pointerDown$,
549
545
  r.pipe(le())
550
546
  ).pipe(
551
547
  H((D) => {
552
- const f = g(
548
+ const m = y(
553
549
  T(D),
554
550
  this.pointerDown$
555
- ).pipe(M(1)), E = f.pipe(u), X = f.pipe(
551
+ ).pipe(M(1)), E = m.pipe(d), X = m.pipe(
556
552
  xe({
557
553
  initialPointerEvent: D,
558
554
  pointerEvent$: this.pointerEvent$,
559
555
  tolerance: s
560
556
  })
561
- ), B = f.pipe(
557
+ ), B = m.pipe(
562
558
  Me({
563
559
  pointerEvent$: this.pointerEvent$,
564
560
  timeout: a
565
561
  })
566
- ), R = g(
562
+ ), R = y(
567
563
  this.failWithActive$.pipe(h((w) => w)),
568
564
  this.pointerCancel$,
569
565
  l,
570
566
  X,
571
567
  B
572
- ), O = E.pipe(
568
+ ), k = E.pipe(
573
569
  Ae,
574
570
  h((w) => w.length <= o),
575
571
  c((w) => ({
@@ -580,13 +576,13 @@ class Ce extends F {
580
576
  })),
581
577
  M(1)
582
578
  );
583
- return O.pipe(
584
- te,
585
- C(O),
586
- c(([w, { type: W, taps: d }]) => ({
579
+ return k.pipe(
580
+ ne,
581
+ C(k),
582
+ c(([w, { type: W, taps: v }]) => ({
587
583
  ...w,
588
584
  type: W,
589
- taps: d
585
+ taps: v
590
586
  })),
591
587
  I(R)
592
588
  );
@@ -600,7 +596,7 @@ class Ce extends F {
600
596
  super.update(e);
601
597
  }
602
598
  }
603
- class Re extends F {
599
+ class Re extends O {
604
600
  constructor(e = {}) {
605
601
  super(e, {
606
602
  numInputs: 2,
@@ -609,7 +605,7 @@ class Re extends F {
609
605
  });
610
606
  $(this, "events$");
611
607
  this.events$ = this.config$.pipe(
612
- v(() => {
608
+ g(() => {
613
609
  const n = this.panStart$.pipe(
614
610
  c((s) => ({
615
611
  ...s,
@@ -619,7 +615,7 @@ class Re extends F {
619
615
  })),
620
616
  M(1)
621
617
  ), o = n.pipe(
622
- v(
618
+ g(
623
619
  () => this.pan$.pipe(
624
620
  L((s, r) => {
625
621
  const l = ((s == null ? void 0 : s.angle) ?? 0) + r.deltaPointersAngle;
@@ -640,7 +636,7 @@ class Re extends F {
640
636
  h((s) => s.type === "end"),
641
637
  c((s) => ({ ...s, type: "rotateEnd" }))
642
638
  );
643
- return g(n, p, a);
639
+ return y(n, p, a);
644
640
  }),
645
641
  P()
646
642
  );
@@ -654,21 +650,21 @@ const Y = ({
654
650
  initialEvent: i
655
651
  }) => (e) => e.pipe(
656
652
  L((n, o) => {
657
- const a = ((n == null ? void 0 : n.pointers.length) ?? 0) !== o.pointers.length, s = (n == null ? void 0 : n.pointersAverageDistance) ?? o.pointersAverageDistance, r = a ? o.pointersAverageDistance : n && "initialPointersAverageDistance" in n ? n.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;
653
+ const a = ((n == null ? void 0 : n.pointers.length) ?? 0) !== o.pointers.length, s = (n == null ? void 0 : n.pointersAverageDistance) ?? o.pointersAverageDistance, r = a ? o.pointersAverageDistance : n && "initialPointersAverageDistance" in n ? n.initialPointersAverageDistance : o.pointersAverageDistance, l = r === 0 ? 1 : o.pointersAverageDistance / r, d = o.pointersAverageDistance - r, u = o.pointersAverageDistance - r, f = a || s === 0 ? 1 : o.pointersAverageDistance / s;
658
654
  return {
659
655
  ...n,
660
656
  ...o,
661
657
  type: t,
662
658
  initialPointersAverageDistance: r,
663
659
  scale: l,
664
- distance: u,
665
- deltaDistance: m,
666
- deltaDistanceScale: y
660
+ distance: d,
661
+ deltaDistance: u,
662
+ deltaDistanceScale: f
667
663
  };
668
664
  }, i),
669
665
  c(({ initialPointersAverageDistance: n, ...o }) => o)
670
666
  );
671
- class ze extends F {
667
+ class ze extends O {
672
668
  constructor(e) {
673
669
  super(e, {
674
670
  ...e == null ? void 0 : e.options,
@@ -678,12 +674,12 @@ class ze extends F {
678
674
  $(this, "start$");
679
675
  $(this, "end$");
680
676
  this.events$ = this.config$.pipe(
681
- v(() => {
677
+ g(() => {
682
678
  const n = this.panStart$.pipe(
683
679
  C(this.failWithActive$),
684
680
  h(([, s]) => !s),
685
681
  c(([s]) => s),
686
- v(
682
+ g(
687
683
  (s) => T(s).pipe(
688
684
  // we don't want a scan on pinch start
689
685
  Y({
@@ -697,7 +693,7 @@ class ze extends F {
697
693
  h((s) => s),
698
694
  z()
699
695
  ), p = n.pipe(
700
- v((s) => this.pan$.pipe(
696
+ g((s) => this.pan$.pipe(
701
697
  V((r) => r.type !== "end"),
702
698
  Y({
703
699
  type: "pinchMove",
@@ -706,10 +702,10 @@ class ze extends F {
706
702
  )),
707
703
  I(o)
708
704
  ), a = n.pipe(
709
- v((s) => {
705
+ g((s) => {
710
706
  let r = s;
711
707
  return this.pan$.pipe(
712
- v((l) => l.type === "end" ? T(l) : (r = l, $e)),
708
+ g((l) => l.type === "end" ? T(l) : (r = l, $e)),
713
709
  I(o),
714
710
  ue(null),
715
711
  c(
@@ -723,7 +719,7 @@ class ze extends F {
723
719
  );
724
720
  })
725
721
  );
726
- return g(n, p, a);
722
+ return y(n, p, a);
727
723
  }),
728
724
  P()
729
725
  ), this.start$ = this.events$.pipe(
@@ -734,12 +730,12 @@ class ze extends F {
734
730
  super.update(e, e.options);
735
731
  }
736
732
  }
737
- class ke {
733
+ class Fe {
738
734
  constructor(i) {
739
735
  $(this, "events$");
740
736
  $(this, "recognizers");
741
737
  $(this, "state$");
742
- this.options = i, this.recognizers = i.recognizers, this.events$ = g(
738
+ this.options = i, this.recognizers = i.recognizers, this.events$ = y(
743
739
  ...i.recognizers.map((e) => e.events$)
744
740
  ).pipe(P()), this.state$ = j(
745
741
  this.recognizers.map((e) => e.state$)
@@ -755,16 +751,16 @@ class ke {
755
751
  disableTextSelection: i,
756
752
  ...e
757
753
  }) {
758
- e.container && (e.container.style.touchAction = "none", i && (e.container.style.userSelect = "none")), this.options.recognizers.forEach((n) => {
754
+ e.container && (e.container.style.touchAction = "none", i && (e.container.style.userSelect = "none"));
755
+ for (const n of this.options.recognizers)
759
756
  n.update(e);
760
- });
761
757
  }
762
758
  }
763
759
  export {
764
760
  Se as PanRecognizer,
765
761
  ze as PinchRecognizer,
766
- ke as Recognizable,
767
- F as Recognizer,
762
+ Fe as Recognizable,
763
+ O as Recognizer,
768
764
  Re as RotateRecognizer,
769
765
  be as SwipeRecognizer,
770
766
  Ce as TapRecognizer