Permalink
Browse files

merging

  • Loading branch information...
2 parents 5a04ab3 + c5be939 commit 5e90c464a6f61e613b9dbea2e985cceaa26447bf @callmephilip callmephilip committed Oct 19, 2012
Showing with 14 additions and 3 deletions.
  1. +14 −3 README.md
View
@@ -8,8 +8,8 @@ Remotes.io is a javascript library that can be used to control webpages remotely
- Hold
- Release
- Swipe
-
-
+- Zoom In (pinch)
+- Zoom Out (pinch)
## Demo's
@@ -50,11 +50,12 @@ You can add event handler by using the 'on' method, and remove them using the 'o
A single event can have mutliple handlers associated with it.
To remove an event handler, you must pass the event-name and the same callback function you wish to unbind, like so:
-``` remotes.off( "gesture-name", function(event){ // Handle your business }); ```
+``` remotes.off( "gesture-name", ); ```
Remotes.io currently supports the following touch events/gestures:
+```
remotes
.on("swipe-left", ...) // A touch and swipe in the leftward direction
.on("swipe-right", ...) // A touch and swipe in the rightward direction
@@ -63,7 +64,17 @@ Remotes.io currently supports the following touch events/gestures:
.on("tap", ...) // A quick tap/touch and release
.on("hold", ...) // A touch lasting at least 500ms in one location
.on("release", ...); // Fired when a 'Hold' event touch ends
+ .on("zoom-in", ...); // Fired when a user zooms in using pinch
+ .on("zoom-out", ...); // Fired when a user zooms out using pinch
+```
+Additionally you get access to synchronization events:
+
+```
+ remotes
+ .on("synced", ...) // Remote control if synced with the page
+ .on("out-of-sync", ...) // Page lost sync with a remote control
+```
### The Remotes.io event object:

0 comments on commit 5e90c46

Please sign in to comment.