Last active
June 23, 2016 09:23
-
-
Save sharkyak/d1d83f67ae3e57004d32afecfa89ec7e to your computer and use it in GitHub Desktop.
iframe ipad problem
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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