Skip to content

Commit b9c2a6f

Browse files
committed
fix: macOS 下禁用橡皮筋回弹效果 避免列表滚动时滚动条占位导致布局抖动
1 parent 67757f3 commit b9c2a6f

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

app/renderer/src/main/src/components/HTTPHistory.module.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
overflow: auto;
1212
width: 100%;
1313
height: 100%;
14+
overscroll-behavior: contain;
15+
padding-bottom: 4px;
1416
}
1517

1618
.webTree-wrapper {
@@ -66,7 +68,9 @@
6668
&-body {
6769
width: 100%;
6870
flex: 1;
71+
min-height: 0;
6972
overflow: hidden auto;
73+
overscroll-behavior: contain;
7074
}
7175

7276
:global {

app/renderer/src/main/src/index.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ body {
1111
-moz-osx-font-smoothing: grayscale;
1212
}
1313

14+
/* 禁用全局橡皮筋回弹效果(overscroll),避免与页面内滚动区域冲突造成卡顿 */
15+
html,
16+
body,
17+
#root {
18+
height: 100%;
19+
overscroll-behavior-y: none;
20+
}
21+
1422
code {
1523
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
1624
}

0 commit comments

Comments
 (0)