amphtml
amphtml copied to clipboard
scrolling freezes on iOS when iframed as in a viewer
Simple example of the problem in: http://output.jsbin.com/jasoko
To reproduce: Swipe down on the text (from top to bottom) Then quickly try swiping up and down There are two things to note. First when you swipe down, there is no stretch and snap back as there normally is when swiping in iOS. Second, scrolling becomes momentarily frozen until you stop trying to swipe up and down.
A hacky fix to this is: http://output.jsbin.com/jimaha In that, the js ensures that scrollTop!=0 so you can always swipe up or down and it will stretch naturally.
Awesome find! Thanks Eric! I will try to incorporate this for iOS in next release.