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

Commit 2338e5d

Browse files
authored
Merge pull request #51 from o5faruk/fix/iosScroll
fix ios scroll
2 parents 5ef1642 + 52e6d34 commit 2338e5d

File tree

3 files changed

+67
-25
lines changed

3 files changed

+67
-25
lines changed

package-lock.json

Lines changed: 62 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/widget/index.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66
<script src="../../../scripts/buildfire/components/notifications/notifications.js"></script>
77
<style>
88
body {
9-
overflow-y: scroll !important; -webkit-overflow-scrolling:touch !important;
10-
}
9+
width: 100vw;
10+
height: 100vh;
11+
}
12+
1113
.success-message{
1214
text-align: center;
1315
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' : 'yes';
123+
iFrame.scrolling = props.isIOS ? 'yes' : 'auto';
124124
iFrame.style.height = '100%';
125125
iFrame.style.width = '1px';
126126
iFrame.style.minWidth = '100%';

0 commit comments

Comments
 (0)