From b6f2fd65f141a2bdd011732e3be32f340e60cd11 Mon Sep 17 00:00:00 2001 From: "Vigo.zhou" Date: Wed, 30 Apr 2025 15:48:49 +0800 Subject: [PATCH] refactor: Remove the debugging log --- src/hooks/useTabScroll.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/hooks/useTabScroll.ts b/src/hooks/useTabScroll.ts index 5ce9592..fb449af 100644 --- a/src/hooks/useTabScroll.ts +++ b/src/hooks/useTabScroll.ts @@ -25,9 +25,6 @@ export function useTabScroll(currentTabPath: Ref) { const wrapperWidth = tabBarScrollWrapper.getBoundingClientRect().width const tabWidth = currentTabElement.getBoundingClientRect().width const containerPR = Number.parseFloat(window.getComputedStyle(tabBarScrollContent).paddingRight) - - console.log(tabLeft, tabBarLeft, wrapperWidth, tabWidth, containerPR,tabLeft + tabWidth + safeArea.value + containerPR > wrapperWidth + tabBarLeft,tabLeft - safeArea.value < tabBarLeft); - if (tabLeft + tabWidth + safeArea.value + containerPR > wrapperWidth + tabBarLeft) { handleTabSwitch(tabLeft + tabWidth + containerPR - wrapperWidth + safeArea.value)