Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A javascript library for multi-touch gestures :// You can touch this

License

NotificationsYou must be signed in to change notification settings

hammerjs/hammer.js

Repository files navigation

Build Status

Support, Questions, and Collaboration

Slack Status

Documentation

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/

Contributing

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.

Building

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

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp