Reputation: 12916
I need a popup plugin (like fancybox) that can contain an iframe and that works well in both desktop browsrs as touch browsers like the ipad, android and iphone. Fancybox behaves pretty strange when I pinch the touch browsers. What I really need it to do is:
Upvotes: 2
Views: 3161
Reputation: 456
The default Fancybox2 has some build in support for touch. If you look at the source you will see an isTouch
variable used throughout the code and default settings. The default setting autoCenter
has an default value of !isTouch
, so on the mobile browser it will not be centered because it's not very well supported. I would advice you to test these defaults:
<script>
$(document).ready(function() {
$('#selector').fancybox({
modal: false
,type: 'iframe'
,minWidth: 960
,height: '90%'
,closeClick: false
,padding: 0
,scrolling: 'no'
,autoSize : false
,helpers: {
overlay :{
closeClick:false
,speedOut:0
,showEarly:true
}
}
});
});
</script>
...
Upvotes: 2
Reputation: 2543
what about jQueryUI Dialog?
As my experience it behaves well with mobile devices and it supports iframe as a dialog content.
Upvotes: 2