We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1fc3f0f + f3df9c3 commit c4f5962Copy full SHA for c4f5962
packages/web/src/index.ts
@@ -43,7 +43,7 @@ function getColumnIndexByUrlName(name: string): number {
43
let y = 0;
44
45
help.addEventListener("click", () => {
46
- scrollY = window.scrollY;
+ y = window.scrollY;
47
document.body.style.position = "fixed";
48
document.body.style.top = `-${y}px`;
49
modal.showModal();
@@ -53,7 +53,7 @@ function closeDialog() {
53
modal.close();
54
document.body.style.position = "";
55
document.body.style.top = "";
56
- window.scrollTo(0, scrollY);
+ window.scrollTo(0, y);
57
}
58
59
modalClose.addEventListener("click", closeDialog);
0 commit comments