- Notifications
You must be signed in to change notification settings - Fork2.6k
A javascript library for multi-touch gestures :// You can touch this
License
NotificationsYou must be signed in to change notification settings
hammerjs/hammer.js
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Visithammerjs.github.io for detailed documentation.
// get a reference to an elementvarstage=document.getElementById('stage');// create a manager for that elementvarmc=newHammer.Manager(stage);// create a recognizervarRotate=newHammer.Rotate();// add the recognizermc.add(Rotate);// subscribe to eventsmc.on('rotate',function(e){// do something coolvarrotation=Math.round(e.rotation);stage.style.transform='rotate('+rotation+'deg)';});
An advanced demo is available here:http://codepen.io/runspired/full/ZQBGWd/
Read thecontributing guidelines.
For PRs.
- UseAngular Style commit messages
- Rebase your PR branch when necessary
- If you add a feature or fix a bug, please add or fix any necessary tests.
- If a new feature, open a docs PR to go with.
You can get the pre-build versions from the Hammer.js website, or do this by yourself runningnpm install -g grunt-cli && npm install && grunt build
About
A javascript library for multi-touch gestures :// You can touch this
Resources
License
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.