amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

scrolling freezes on iOS when iframed as in a viewer

Open ericfs opened this issue 11 years ago • 1 comments

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.

ericfs avatar Sep 28 '15 20:09 ericfs

Awesome find! Thanks Eric! I will try to incorporate this for iOS in next release.

dvoytenko avatar Sep 29 '15 23:09 dvoytenko