Permalink
Browse files

Remove examples index.html. Add webkit style for div scrolling on ios…

… devices
  • Loading branch information...
1 parent e0b797d commit 54b6b7fe0078e99b8600644a5ef7a4abd15f5eb4 @turnertime committed Mar 29, 2012
Showing with 2 additions and 18 deletions.
  1. +1 −1 examples/horizontal.html
  2. +0 −16 examples/index.html
  3. +1 −1 examples/vertical.html
View
@@ -8,7 +8,7 @@
<style>
* { -moz-box-sizing:border-box; -webkit-box-sizing:border-box; box-sizing:border-box; }
html, body { font-family:Arial,sans-serif; color:#333; margin:0; padding:0; font-size:24px; }
- .virtualist { position:absolute; top:4px; left:4px; bottom:4px; right:4px; overflow:auto; margin:0; padding:0; }
+ .virtualist { position:absolute; top:4px; left:4px; bottom:4px; right:4px; overflow:auto; margin:0; padding:0; -webkit-overflow-scrolling:touch; }
.virtualist-canvas { position:absolute; top:0; bottom:0; margin:0; padding:0; }
.virtualist-item { position:absolute; color:#fff; background:#1ba557; width:24px; word-wrap:break-word; text-align:center; padding:5px 0 5px 0; margin:0; }
</style>
View
@@ -1,16 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>examples - virtualist</title>
- <link href="../favicon.ico" rel="icon" type="image/x-icon" />
- </head>
- <body>
- <h1>virtualist examples</h1>
- <ul>
- <li><a href="horizontal.html">horizontal</a></li>
- <li><a href="vertical.html">vertical</a></li>
- </ul>
- </body>
-</html>
View
@@ -8,7 +8,7 @@
<style>
html, body { font-family:sans-serif; margin:0; padding:0; font-size:24px;}
- .virtualist { position:absolute; top:4px; left:4px; bottom:4px; right:4px; overflow:auto; margin:0; padding:0; }
+ .virtualist { position:absolute; top:4px; left:4px; bottom:4px; right:4px; overflow:auto; margin:0; padding:0; -webkit-overflow-scrolling:touch; }
.virtualist-canvas { overflow:hidden; margin:0; padding:0; }
.virtualist-item { position:absolute; color:#fff; background:#1ba557; height:24px; line-height:24px; padding:0 5px 0 5px; margin:0; }

0 comments on commit 54b6b7f

Please sign in to comment.