Skip to content

Commit

Permalink
fix(cdk): endWith should be pass after takeUntil (#6581)
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode authored Jan 29, 2024
1 parent 2f375e1 commit 14da1e0
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 @@ -52,8 +52,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 14da1e0

Please sign in to comment.