Prevent iOS bounce without disabling scroll ability

This code should stop the bounce as it’s the HTML tag that bounces

html {
    height  : 100%;
    overflow: hidden;
    position: relative;
}
body {
    height  : 100%;
    overflow: auto;
    position: relative;
}

Leave a Comment