On iOS devices like the iPad and iPhone 6, scrolling doesn't seem to work as intended. Instead of the iframe scrolling, it's the 'body' that is moving.
Javascript
$(document).on(clickHandler, '#content a', function(){
href = $(this).attr("title");
$("#iframeContainer div").append(
$("<iframe />")
.attr("src", href)
)
$("#iframeContainer").fadeIn();
});
CSS
#iframeContainer {
display: none;
position: fixed;
top: 0;
left: 0;
z-index: 9999;
background-color: rgba(0,0,0,0.5);
}
#iframeContainer div {
position: fixed;
left: 5%;
top: 5%;
width: 90%;
height: 90%;
overflow-y: scroll;
-webkit-overflow-scrolling: touch
}
#iframeContainer div iframe {
width: 100%;
height: 100%
}
HTML
<div id="iframeContainer">
<div></div>
</div>