Conflict between smooth scrolling and fix positioning for mobile popup layers

Source: Internet
Author: User

#branch-list {  overflow: scroll;   -webkit-overflow-scrolling: touch; /* iOS Smooth scrolling */   overflow-scrolling: touch;   -webkit-transform: translate3d (0,0,0); /* Android Smooth scrolling */   transform: translate3d (0,0,0);   height: 6.5rem;}

In order to smooth the content of the popup layer, add a overflow-scrolling:touch to the pop-up layer container;

It turns out that under iOS, the absolute positioning of the navigation and feet flashes under the pop-up layer container. Whether fixed or changed to absolute, can not solve the problem.

The solution is to add a layer of div to the content you want to scroll, and set the smooth scrolling on this div.

Conflict between smooth scrolling and fix positioning for mobile popup layers

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.