diff --git a/projects/cdk/directives/swipe/swipe.service.ts b/projects/cdk/directives/swipe/swipe.service.ts index c7f7b4a95d6f..130b266e87af 100644 --- a/projects/cdk/directives/swipe/swipe.service.ts +++ b/projects/cdk/directives/swipe/swipe.service.ts @@ -15,7 +15,7 @@ export class TuiSwipeService extends Observable { const el = tuiInjectElement(); const {timeout, threshold} = inject(TUI_SWIPE_OPTIONS); - super((subscriber) => { + super((subscriber) => merge( tuiTypedFromEvent(el, 'touchstart', {passive: true}), tuiTypedFromEvent(doc, 'touchend'), @@ -53,8 +53,8 @@ export class TuiSwipeService extends Observable { }), filter(tuiIsPresent), ) - .subscribe(subscriber); - }); + .subscribe(subscriber), + ); } }