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

Commit f109753

Browse files
committed
Merge pull request #23 from sakshityagi/master
Made scrollable property set according to iphone/android, ticket #119304049
2 parents d07183f + 83f5823 commit f109753

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

widget/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<p ng-if="loading" style="position: absolute; top: 0; display: inline-block; width: 100%; left: 0; background: #eee; text-align: center; color: #333;">Loading....</p>
3232
<iframe ng-src="{{ url }}"
3333
style="height:100%; width:1px; min-width:100%;"
34-
scrolling="auto"
34+
scrolling="{{isIOS ? 'no' : 'auto'}}"
3535
iframe-onload="iframeLoadedCallBack()" id="webviewIframe"></iframe>
3636
</div>
3737
<div style="text-align: center;vertical-align: middle; height: 100%"
@@ -67,6 +67,7 @@ <h2>Success!</h2>
6767
$scope.loading = 1;
6868
buildfire.spinner.show();
6969
console.log("________________", result);
70+
$scope.isIOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
7071
if (result && result.data && !angular.equals({}, result.data)) {
7172
if (result.data.content) {
7273
content = result.data.content;

0 commit comments

Comments
 (0)