Skip to content

Commit

Permalink
fix(cdk): endWith should be pass after takeUntil
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Jan 28, 2024
1 parent c50121e commit 9aa8e8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/cdk/services/scroll.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 9aa8e8d

Please sign in to comment.