From 9aa8e8da604b1f7ad50167cfd6645ab5bedd816f Mon Sep 17 00:00:00 2001 From: splincode Date: Sun, 28 Jan 2024 00:49:49 +0300 Subject: [PATCH] fix(cdk): `endWith` should be pass after `takeUntil` --- projects/cdk/services/scroll.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/cdk/services/scroll.service.ts b/projects/cdk/services/scroll.service.ts index 10d47526eac6..687b8c5fc677 100644 --- a/projects/cdk/services/scroll.service.ts +++ b/projects/cdk/services/scroll.service.ts @@ -62,8 +62,8 @@ export class TuiScrollService { initialTop + deltaTop * percent, initialLeft + deltaLeft * percent, ]), - endWith<[number, number]>([scrollTop, scrollLeft]), takeUntil(timer(duration)), + endWith<[number, number]>([scrollTop, scrollLeft]), ); return observable.pipe(