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.
1 parent a869ad5 commit 9f6143cCopy full SHA for 9f6143c
1 file changed
apps/client/src/main.tsx
@@ -10,8 +10,10 @@ import { Frame } from "@/pages/Frame/Frame"
10
import "@/components/Editor/init"
11
12
// Prevent bounce scrolling on document while allowing internal scroll
13
-preventBounceScroll()
+const cleanupBounceScroll = preventBounceScroll()
14
15
+// Ensure bounce scroll listeners are cleaned up when the page unloads
16
+window.addEventListener("unload", cleanupBounceScroll)
17
// Make sure we have a root element to mount the app
18
const rootElement = document.getElementById("root")
19
if (!rootElement) {
0 commit comments