revert tabs scroll timing (#363)

This commit is contained in:
Red J Adaya 2024-09-11 14:22:32 +08:00 committed by GitHub
parent f6fc0125fd
commit c3a02d7e33
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -429,7 +429,7 @@ const TabBar = React.memo(({ workspace }: TabBarProps) => {
tabsWrapperRef.current.style.transition;
tabsWrapperRef.current.style.setProperty("--tabs-wrapper-transition", "width 0.1s ease");
debounce(300, () => {
debounce(30, () => {
if (scrollableRef.current) {
const { viewport } = osInstanceRef.current.elements();
viewport.scrollLeft = tabIds.length * tabWidthRef.current;