Skip to content

Commit eb12bcf

Browse files
committed
fix(css): disable overscroll in panels
1 parent c67c380 commit eb12bcf

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/components/AppComponent.vue

+1
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ onBeforeUnmount(() => {
191191
position: relative;
192192
max-height: calc(100% - #{layout.$safe-navbar-height});
193193
overflow: auto;
194+
overscroll-behavior: none;
194195
}
195196
}
196197
</style>

src/components/common/navbar/NavbarComponent.vue

+3-2
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,12 @@ const onTouchEnd = (e: TouchEvent) => {
8686
const _touchEnd = e.changedTouches?.[0];
8787
if (!_touchStart) return;
8888
touchStart.value = undefined;
89+
const { clientWidth } = navElement.value || {};
8990
const swipe = handleSwipe(_touchStart, _touchEnd, {
9091
vertical: Header.totalHeight,
9192
up: Header.navbarHeight,
92-
left: 50,
93-
right: 50,
93+
left: clientWidth ? Math.min(clientWidth / 2, 200) : 200,
94+
right: clientWidth ? Math.min(clientWidth / 2, 200) : 200,
9495
});
9596
switch (swipe) {
9697
case SwipeDirection.Down:

0 commit comments

Comments
 (0)