Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
More
  • Loading branch information
nacmartin committed Mar 12, 2023
1 parent dda14df commit cbc4c30
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ import { init } from "manitas";

// In some async function
await init();

// Or as a promise
init().then(...)
```

And then you can listen to these events:
```js
document.addEventListener('gesturestart', listener);
Expand All @@ -38,6 +42,14 @@ document.addEventListener('airfingermove', listener);
document.addEventListener('airfingerend', listener);
```

### Examples

Check out the [examples](examples/) folder:

* [ui-react](examples/ui-react): Usage in React to select items, drag them around and trigger actions with gestures. [See it live](http://manitas-react.limenius.com).
* airpaint (coming soon).


## Events

There are two main classes of events:
Expand Down

0 comments on commit cbc4c30

Please sign in to comment.