commit f30925008b91cc08e916cfa89a0ffe1473e85fb2
parent 46ab39890b3fb373a1c0b571924fd967200af3eb
Author: Hunter
Date:   Thu, 10 Jul 2025 17:35:25 -0400

disable overscroll

Diffstat:
Mindex.html | 11+++++++++++
1 file changed, 11 insertions(+), 0 deletions(-)

diff --git a/index.html b/index.html @@ -90,6 +90,11 @@ -moz-tab-size: 2 !important; } + /* Disable overscroll on all CodeMirror elements */ + .cm-editor, .cm-content, .cm-scroller, .cm-scrollElement { + overscroll-behavior: none !important; + } + #preview { width: 100%; height: 100%; @@ -133,6 +138,12 @@ const doc = preview.contentDocument || preview.contentWindow.document; doc.open(); doc.write(code); + + // Inject CSS to disable overscroll in iframe content + const style = doc.createElement('style'); + style.textContent = `* { overscroll-behavior: none !important; }`; + doc.head.appendChild(style); + doc.close(); // Restore scroll position after a short delay to ensure content is rendered