Skip to content

Instantly share code, notes, and snippets.

@sharkyak
Last active June 23, 2016 09:23
Show Gist options
  • Select an option

  • Save sharkyak/d1d83f67ae3e57004d32afecfa89ec7e to your computer and use it in GitHub Desktop.

Select an option

Save sharkyak/d1d83f67ae3e57004d32afecfa89ec7e to your computer and use it in GitHub Desktop.
iframe ipad problem
First identify the touch device by adding the following javascript (jQuery):
if ("ontouchstart" in document.documentElement){
$('html').addClass('touch');
}
Then add the following line to thickbox.css:
.touch #TB_window {
height: 90%;
-webkit-overflow-scrolling: touch !important;
overflow: scroll !important;
}
On webflow you only need to add class .w-mod-touch in wrap div
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment