Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit 5ef1642

Browse files
Merge pull request #50 from NenoR96/master
fix: ios iframe scrolling issue
2 parents 52b816c + 8e58e16 commit 5ef1642

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/widget/index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
<script src="../../../scripts/buildfire.js"></script>
66
<script src="../../../scripts/buildfire/components/notifications/notifications.js"></script>
77
<style>
8+
body {
9+
overflow-y: scroll !important; -webkit-overflow-scrolling:touch !important;
10+
}
811
.success-message{
912
text-align: center;
1013
vertical-align: middle;

src/widget/widget.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ const renderiFrame = (props) =>{
120120
let iFrame = window.document.createElement('iframe');
121121
iFrame.id = 'webviewIframe';
122122
iFrame.src = props.url;
123-
iFrame.scrolling = props.isIOS ? 'no' : 'auto';
123+
iFrame.scrolling = props.isIOS ? 'no' : 'yes';
124124
iFrame.style.height = '100%';
125125
iFrame.style.width = '1px';
126126
iFrame.style.minWidth = '100%';

0 commit comments

Comments
 (0)