Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
410 views
in Technique[技术] by (71.8m points)

ios8 - iOS 8 Safari - Can't scroll element's content when page is zoomed

This issue happens only in iOS 8 (8.1 to be exact). It does not reproduce in iOS 7.

The use-case: Scrolling inside an element with scrollable (long) content.

If the page is not zoomed-in - it works as expected.

When you zoom-in the page - it stops working, the page is scrolled instead (as if you reached the end of the scrollable content). The effect is continuous: the higher the zoom - it's less possible to scroll the content.

Test page: here

Open the link in your iOS 8 Safari - see that the list element is scrollable.

Now zoom-in the page and try to scroll the content of the list - the page is scrolled instead of the items inside the list. I've placed the red markers so it will be easy to see that the page is scrolled.

I've tried different CSS rules and even JS to prevent the page from scrolling (that still does make the content of the element scroll).

Has anyone encountered this behaviour or has a suggestion how to fix it? I really don't want to implement content scrolling with JS.

Disabling the zoom on the page (with meta viewport) is not an option for me.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...