Skip to content

Commit

Permalink
Updating the readme.
Browse files Browse the repository at this point in the history
+ Stylesheet is mandatory (at least for now).
+ Fixed a typo.
  • Loading branch information
David Aurelio committed May 5, 2010
1 parent 3db17a4 commit 2b20f8b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ Usage

To use TouchScroll you need an element with fixed height. Have a look at the demo for an elegant solution using `display: -webkit-box`.

The stylesheet is mandatory at the moment. It will be made optional in the future for cases when scrollbars aren’t needed.

<link rel="stylesheet" src="touchscroll.css">
<!-- … -->
<div id="scroller">
<!-- contents go here -->
</div>
Expand All @@ -36,7 +40,7 @@ To enable the elasticity/bouncing effect, add `{elastic: true}` as second parame

Set the scroller to `overflow: auto` to enable scrolling in other environments.

The scroller automatically adapts it’s size to content changes and window resizes/orientation changes.
The scroller automatically adapts its size to content changes and window resizes/orientation changes.



Expand Down

0 comments on commit 2b20f8b

Please sign in to comment.