TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Hammer.js: Add touch gestures to your page

77 pointsby sconxualmost 10 years ago

9 comments

tbassettoalmost 10 years ago
You should now that this project is abandoned and is looking for a new maintainer since January 2015: <a href="https:&#x2F;&#x2F;github.com&#x2F;hammerjs&#x2F;hammer.js&#x2F;issues&#x2F;749" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;hammerjs&#x2F;hammer.js&#x2F;issues&#x2F;749</a> (also issues on GitHub have been piling up for quite a long time).
评论 #9652443 未加载
评论 #9652352 未加载
kitbrennanalmost 10 years ago
MacBookPro user - not really sure what I&#x27;m supposed to be experiencing? I can click and drag the white box and it moves back to its original position, is that it? I&#x27;ve tried all the standard Mac touch gestures.<p>Is this library only for tablets?<p>The page that was linked is pathetically vague.
评论 #9651646 未加载
评论 #9651663 未加载
评论 #9664573 未加载
评论 #9651939 未加载
评论 #9651604 未加载
wakelessalmost 10 years ago
We&#x27;ve been using this for a while, documentation isn&#x27;t great, but it seems it&#x27;s the best library for what it does.<p>We had particular trouble with double tap recognition early on but I believe V2 improved this substantially.
评论 #9654452 未加载
91bananasalmost 10 years ago
A similar lib, but slightly different focus: <a href="http:&#x2F;&#x2F;interactjs.io&#x2F;" rel="nofollow">http:&#x2F;&#x2F;interactjs.io&#x2F;</a><p>I know this one to be very well maintained currently as evidenced here <a href="https:&#x2F;&#x2F;gitter.im&#x2F;taye&#x2F;interact.js" rel="nofollow">https:&#x2F;&#x2F;gitter.im&#x2F;taye&#x2F;interact.js</a>
notjustanymikealmost 10 years ago
I&#x27;ve used hammer.js professionally. It&#x27;s small, reliable, and provides useful things like deltas. It also pairs great with mousetrap (<a href="https:&#x2F;&#x2F;github.com&#x2F;ccampbell&#x2F;mousetrap" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;ccampbell&#x2F;mousetrap</a>) for keyboard interaction. Would recommend.
ramonalmost 10 years ago
It&#x27;s the best touch gestures for mobile library currently out there, I&#x27;ve tested a couple and in my current project I&#x27;m using this one! It&#x27;s by far the easiest and smallest lib out there, great work guys! :)
winterbealmost 10 years ago
I&#x27;m missing M.C. Hammer from the older version. =(
评论 #9651952 未加载
spegalmost 10 years ago
I like the design. Clean and simple, bright and bold. I like the font, and I liked red too.
评论 #9651946 未加载
jjaralmost 10 years ago
&gt; var hammertime = new Hammer(myElement, myOptions); &gt; hammertime.on(&#x27;pan&#x27;, function(ev) { &gt; console.log(ev); &gt; });<p>This made me laugh