Skip to content

Commit

Permalink
fix(Grid): Add css to allow iOS momentum scroll
Browse files Browse the repository at this point in the history
iOS devices apparently need a special vendor-prefixed css property in
order to allow momentum scrolling in an element. I don't believe it
pertains to other mobile devices

Fixes #2671
  • Loading branch information
c0bra committed Feb 10, 2015
1 parent 4a647b7 commit 48fd502
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/less/body.less
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
// overflow: auto; // TODO(c0bra): turn back on when virtual repeater is hooked up
min-height: 20px;
position: relative;
overflow-y: scroll;

This comment has been minimized.

Copy link
@zuzusik

zuzusik Mar 16, 2016

Contributor

FYI: this makes scrollbar to be always shown (even if content is not overflowed) on all platforms except mobile and Apple vendored ones. This looks bit ugly.

-webkit-overflow-scrolling: touch;

:focus {
outline: none;
Expand Down

0 comments on commit 48fd502

Please sign in to comment.