@bizy/core 21.8.6 → 21.8.7
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/fesm2022/bizy-core.mjs
CHANGED
|
@@ -18787,7 +18787,7 @@ class BizyLongPressDirective {
|
|
|
18787
18787
|
const mouseup = fromEvent(window, 'mouseup').pipe(filter((event) => event.button === MOUSE_LEFT_BUTTON), map(() => false) // reset delay counter
|
|
18788
18788
|
);
|
|
18789
18789
|
this.#subscription = merge(mousedown, mouseup, touchstart, touchEnd)
|
|
18790
|
-
.pipe(switchMap(state => (state ? timer(this.bizyLongPressThreshold) : of(null))), filter(value =>
|
|
18790
|
+
.pipe(switchMap(state => (state ? timer(this.bizyLongPressThreshold) : of(null))), filter(value => value !== null))
|
|
18791
18791
|
.subscribe(() => this.bizyLongPress.emit());
|
|
18792
18792
|
}
|
|
18793
18793
|
ngOnDestroy() {
|