From 537bab67fdddd2c82680fcb4b0b256de507068ed Mon Sep 17 00:00:00 2001 From: Jan Miksovsky Date: Wed, 11 Jun 2014 16:23:39 -0700 Subject: [PATCH] Tweak demo. Momentum scrolling. --- basic-list-box.html | 4 +++- index.html | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/basic-list-box.html b/basic-list-box.html index d92780a..899b086 100644 --- a/basic-list-box.html +++ b/basic-list-box.html @@ -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 */ diff --git a/index.html b/index.html index 6ddbf0b..7aaaf4e 100644 --- a/index.html +++ b/index.html @@ -3,6 +3,7 @@ + basic-list-box @@ -23,7 +24,7 @@ #list { height: 200px; - width: 200px; + max-width: 300px; }