File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
docs/.vitepress/components Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,9 @@ onMounted(() => {
1515});
1616const body = useElementBounding (bodyRef );
1717
18- const yShow = computed (() => body .height .value > winH .value );
18+ const errorDistance = 5 ;
19+
20+ const yShow = computed (() => body .height .value > winH .value + errorDistance );
1921const yHeight = computed (() => {
2022 const clientHeight = body .height .value ;
2123 const bodyHeight = clientHeight ;
@@ -63,7 +65,7 @@ useEventListener('pointerup', () => {
6365 yDragging .value = false ;
6466});
6567
66- const xShow = computed (() => body .width .value > winW .value );
68+ const xShow = computed (() => body .width .value > winW .value + errorDistance );
6769const xWidth = computed (() => {
6870 const clientWidth = body .width .value ;
6971 const bodyWidth = clientWidth ;
You can’t perform that action at this time.
0 commit comments