Browse Source

Fixes scroll problem with touch input

pull/622/head
Daijiro Wachi 8 years ago
parent
commit
14c91d5703
  1. 6
      sass/base.scss

6
sass/base.scss

@ -9,9 +9,8 @@
box-sizing: border-box; box-sizing: border-box;
} }
// We fix position the body and scroll `.content`.
body { body {
position: fixed; position: absolute;
top: 0; top: 0;
right: 0; right: 0;
bottom: 0; bottom: 0;
@ -36,12 +35,13 @@ a {
// Wrapper to be used around all content not in .bar-title and .bar-tab // Wrapper to be used around all content not in .bar-title and .bar-tab
.content { .content {
position: absolute; position: relative;
top: 0; top: 0;
right: 0; right: 0;
bottom: 0; bottom: 0;
left: 0; left: 0;
overflow: auto; overflow: auto;
overflow-y: scroll;
background-color: #fff; background-color: #fff;
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
} }

Loading…
Cancel
Save