Skip to content

Commit

Permalink
touchy controller is an object, has start/stop methods
Browse files Browse the repository at this point in the history
  • Loading branch information
jairajs89 committed Feb 22, 2012
1 parent ea6c276 commit b8e7bbe
Show file tree
Hide file tree
Showing 3 changed files with 287 additions and 193 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## Touchy.js
### Because some things just need to be touched.

Touchy.js is a simple light-weight (1.65 kb compressed) JavaScript library for dealing with touch events in the browser. With no dependencies, just add the script to your page and start hacking.
Touchy.js is a simple light-weight (1.98 kb compressed) JavaScript library for dealing with touch events in the browser. With no dependencies, just add the script to your page and start hacking.


## Quick example
Expand All @@ -11,7 +11,11 @@ Touchy.js is a simple light-weight (1.65 kb compressed) JavaScript library for d
var touchMe = document.getElementById('touch-me');

// Touchy.js creates a single global object called 'Touchy'
Touchy(touchMe, function (hand, finger) {
var toucher = Touchy(touchMe, function (hand, finger) {
// this === toucher
// toucher.stop() : stop watching element for touch events
// toucher.start(): start watching element for touch events

// This function will be called for every finger that touches the screen
// regardless of what other fingers are currently interacting.

Expand Down
Loading

0 comments on commit b8e7bbe

Please sign in to comment.