h5 page slide Caton Solution

Solution:

    To the rolling elements add style: -webkit-overflow-scrolling: touch;

    -webkit-overflow-scrolling (scrolling region and allow independent touch rebound)

    If the value is auto, is an ordinary scroll, scroll your finger from the stop, people feel a little card Dayton

    If set to touch, after finger leaves will roll about, there are rebound effect, it looks very smooth

    But beginning with a small bug, h5 when the page is packaged into app, initially written * {- webkit-overflow-scrolling: touch;}, leading to scroll to the bottom of the page finally appears blank, the style is added to the sentence to scroll elements above it.

Guess you like

Origin www.cnblogs.com/xinyueBlog/p/11239649.html