You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lets say you're scrolling through a large MD file, once you hit the bottom the entire page will start scrolling, not just the iframe. AFAIK you can't prevent scrolling, however, you can add a document.body.overflow = 'hidden' and it will make the page not scrollable.
We'll wanna probably see if it looks ok to do that, but this will make it so as long as you're focused on the editor (mouse hovering, or click inside the iframe) you can't start to scroll down the parent document.
The text was updated successfully, but these errors were encountered:
I was thinking about this again today and checking for scrolling wont work because once you hit the bottom the scrolling stops therefore it'll start scrolling the parent again. You'll probably instead want to prevent scrolling while focused on the editor or something.
Lets say you're scrolling through a large MD file, once you hit the bottom the entire page will start scrolling, not just the iframe. AFAIK you can't prevent scrolling, however, you can add a
document.body.overflow = 'hidden'
and it will make the page not scrollable.We'll wanna probably see if it looks ok to do that, but this will make it so as long as you're focused on the editor (mouse hovering, or click inside the iframe) you can't start to scroll down the parent document.
The text was updated successfully, but these errors were encountered: