Overflow scrolling bug with iOS

Source: Internet
Author: User

Let's talk about this bug scenario.

. Container {     height:100vh;      overflow-y:scroll;  }

No problem, there is always this similar situation, need to scroll inside the container, but! The scrolling in this container is handled on iOS in a situation similar to

-webkit-overflow-scrolling:auto;

What do you mean?

That is, when the hand leaves the screen at the moment of sliding, the scroll stops immediately (from MDN)

The corresponding solution on the net is to set up a

-webkit-overflow-scrolling:touch;

In this case, the scrolling is guaranteed to be smooth.

But!!! Often there are a variety of rolling, stuck and so on, experience super bad.

Although there are various solutions available on the Internet

{     height:calc (100%+1px);      z-index:1;}

But.... And the eggs, useless.

=================================================================================

Ye do not wait, those to deal with the rolling events or something I still tied to the body ...

Overflow scrolling bug with iOS

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.