ios - Ionic iframe zoom -
i'm using iframe in ionic framework load external website, in able zoom iframe content, current code is:
<ion-content class="has-header" overflow-scroll="true" direction="xy" locking="false"> <div class="scroll-wrapper"> <iframe data-tap-disabled="true" onload="loaddone();" sandbox src="{{url}}"></iframe> </div> </ion-content>
the css class:
.scroll-wrapper { position: fixed; right: 0; bottom: 0; left: 0; top: 0; -webkit-overflow-scrolling: touch; overflow-y: scroll; }
i testing in ios (haven't tested on android) , can't scrolling work, played around no success. tried:
<ion-content class="has-header" overflow-scroll="true"> <ion-scroll zooming="true" direction="xy" locking="false"> <div class="scroll-wrapper"> <iframe data-tap-disabled="true" onload="loaddone();" sandbox src="{{url}}"></iframe> </div> </ion-scroll> </ion-content>
any appreciated!
Comments
Post a Comment