Enable scrolling with momentum on iOS

This commit is contained in:
An Phan 2015-12-20 23:55:32 +08:00
parent 42c7651031
commit 5969cf7e46
3 changed files with 13 additions and 0 deletions

View file

@ -82,6 +82,11 @@
background: $colorExtraBgr;
max-height: calc(100vh - #{$headerHeight + $footerHeight});
overflow: auto;
// Enable scroll with momentum on touch devices
overflow-y: scroll;
-webkit-overflow-scrolling: touch;
display: none;
color: $color2ndText;

View file

@ -102,6 +102,10 @@
padding: 24px 24px $footerHeight;
height: calc(100vh - #{$headerHeight + $footerHeight + $mainHeadingHeight + 24px});
overflow: auto;
// Enable scroll with momentum on touch devices
overflow-y: scroll;
-webkit-overflow-scrolling: touch;
}
.translucent {

View file

@ -91,6 +91,10 @@
max-height: calc(100vh - #{$headerHeight + $footerHeight});
overflow: auto;
// Enable scroll with momentum on touch devices
overflow-y: scroll;
-webkit-overflow-scrolling: touch;
section {
margin-bottom: 32px;