Skip to content

Commit 14732b4

Browse files
committed
fix(tabs): add smooth scroll behavior
1 parent 9f5b46c commit 14732b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/pfe-core/controllers/overflow-controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export class OverflowController implements ReactiveController {
6262
return;
6363
}
6464
const leftScroll = this.#container.scrollLeft - this.#container.clientWidth;
65-
this.#container.scroll({ left: leftScroll });
65+
this.#container.scroll({ left: leftScroll, behavior: 'smooth' });
6666
this.#setOverflowState();
6767
}
6868

@@ -71,7 +71,7 @@ export class OverflowController implements ReactiveController {
7171
return;
7272
}
7373
const leftScroll = this.#container.scrollLeft + this.#container.clientWidth;
74-
this.#container.scroll({ left: leftScroll });
74+
this.#container.scroll({ left: leftScroll, behavior: 'smooth' });
7575
this.#setOverflowState();
7676
}
7777

0 commit comments

Comments
 (0)