Fix document not scrolling in iOS (all browsers)

This patches a bug where users cannot scroll a document on iOS,
because iOS does not allow iframes to be scrolled.

See https://davidwalsh.name/scroll-iframes-ios for details.
This commit is contained in:
Ali Sherief 2022-09-21 12:16:44 +00:00 committed by SamTV12345
parent 426174d491
commit 519dea48f8
2 changed files with 18 additions and 1 deletions

View file

@ -1,3 +1,18 @@
.scroll-wrapper {
display: flex;
min-width: 100vw;
}
@supports (-webkit-touch-callout: none) {
.scroll-wrapper {
-webkit-overflow-scrolling: touch;
overflow-y: scroll;
}
.scroll-wrapper iframe {}
}
#outerdocbody {
margin: 0 auto;
padding-top: 20px;

View file

@ -80,7 +80,9 @@
<% e.begin_block("afterEditbar"); %><% e.end_block(); %>
<div id="editorcontainerbox" class="flex-layout">
<div class="scroll-wrapper">
<div id="editorcontainerbox" class="flex-layout">
</div>
<% e.begin_block("editorContainerBox"); %>