Skip to content

Commit 84e03ea

Browse files
authored
Disable buggy sticky scroll (#8321)
1 parent b13d195 commit 84e03ea

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

webviews/editorWebview/index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ textarea:focus,
4848
}
4949

5050
.title {
51-
position: sticky;
51+
/* position: sticky; */
5252
top: 0;
5353
z-index: 100;
5454
display: flex;

webviews/editorWebview/overview.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export const Overview = (pr: PullRequest) => {
5252
}
5353

5454
const unstuckHeight = title.getBoundingClientRect().height;
55-
title.classList.add('stuck');
55+
// title.classList.add('stuck');
5656
const stuckHeight = title.getBoundingClientRect().height;
5757
stickyHeightRef.current = stuckHeight;
5858
collapseDeltaRef.current = Math.max(0, unstuckHeight - stuckHeight);
@@ -90,7 +90,7 @@ export const Overview = (pr: PullRequest) => {
9090
const rect = title.getBoundingClientRect();
9191
// Title is stuck when its top is at position 0 (sticky top: 0)
9292
if (rect.top <= STICKY_THRESHOLD) {
93-
title.classList.add('stuck');
93+
// title.classList.add('stuck');
9494
} else {
9595
title.classList.remove('stuck');
9696
}

0 commit comments

Comments
 (0)