Skip to content

Commit

Permalink
Tweak demo.
Browse files Browse the repository at this point in the history
Momentum scrolling.
  • Loading branch information
Jan Miksovsky committed Jun 11, 2014
1 parent 4f90bd9 commit 537bab6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion basic-list-box.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@
:host {
display: block;
outline: none;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
overflow-y: scroll; /* for momentum scrolling */
-webkit-tap-highlight-color: rgba( 0, 0, 0, 0 );
}

/* Generic appearance */
Expand Down
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>

<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">

<title>basic-list-box</title>

Expand All @@ -23,7 +24,7 @@

#list {
height: 200px;
width: 200px;
max-width: 300px;
}
</style>

Expand Down

0 comments on commit 537bab6

Please sign in to comment.