Skip to content

Commit

Permalink
feat: stop background scrolling when scrolling inside of preview modal
Browse files Browse the repository at this point in the history
  • Loading branch information
0x4007 committed Dec 6, 2023
1 parent 5841a45 commit a8736c5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/home/rendering/render-preview-modal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,11 @@ function closePreview() {
preview.classList.remove("active");
issuesContainer?.classList.remove("preview-active");
}

preview.addEventListener(
"wheel",
(event) => {
event.preventDefault();
},
{ passive: false }
);

0 comments on commit a8736c5

Please sign in to comment.