mirror of
https://github.com/chansee97/nova-admin.git
synced 2025-05-21 00:09:16 +08:00
refactor: Remove the debugging log
This commit is contained in:
parent
4f43a466c8
commit
b6f2fd65f1
@ -25,9 +25,6 @@ export function useTabScroll(currentTabPath: Ref<string>) {
|
|||||||
const wrapperWidth = tabBarScrollWrapper.getBoundingClientRect().width
|
const wrapperWidth = tabBarScrollWrapper.getBoundingClientRect().width
|
||||||
const tabWidth = currentTabElement.getBoundingClientRect().width
|
const tabWidth = currentTabElement.getBoundingClientRect().width
|
||||||
const containerPR = Number.parseFloat(window.getComputedStyle(tabBarScrollContent).paddingRight)
|
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) {
|
if (tabLeft + tabWidth + safeArea.value + containerPR > wrapperWidth + tabBarLeft) {
|
||||||
handleTabSwitch(tabLeft + tabWidth + containerPR - wrapperWidth + safeArea.value)
|
handleTabSwitch(tabLeft + tabWidth + containerPR - wrapperWidth + safeArea.value)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user