TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Touchy.js - light-weight touch event library

71 点作者 rodion_89超过 13 年前

7 条评论

dmethvin超过 13 年前
I like some of those abstractions, like the finger vs. hand and one/two/... fingers.<p>Apple doesn't seem interested in playing ball with the W3C to standardize touch events:<p><a href="http://www.w3.org/2012/01/touch-pag-charter" rel="nofollow">http://www.w3.org/2012/01/touch-pag-charter</a><p>Presumably for that reason, the touch model Microsoft has for Windows 8 looks very different than the Webkit model:<p><a href="http://msdn.microsoft.com/en-us/library/hh673557%28v=vs.85%29.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/hh673557%28v=vs.85%2...</a><p>So anyone wanting to use touch events cross-platform will need some sort of shim layer for them. Maybe Touchy could help there?
评论 #3552851 未加载
rodion_89超过 13 年前
For anyone who cares, I rewrote most of the library an hour ago to eliminate some inconsistencies during multi-touch events. Usage has not changed at all.
54mf超过 13 年前
Awesome. I've been needing a simple way to distinguish between a tap and a swipe/drag - i.e. activate a thing if the user taps a &#60;div&#62;, but not if they touch a &#60;div&#62; but swipe away - and using the finger.end data should work quite nicely.
firefoxman1超过 13 年前
That's fantastic. I love the way you implemented multitouch with an object. Very simple.
pedalpete超过 13 年前
Very cool, but I'd like a simple library which gives the basics of tap, touch and hold, touch and move, or something that easily recreates the general click functions.
评论 #3552160 未加载
tylerlh超过 13 年前
Nice work on this. I'll be keeping an eye on it for sure. I've got some apps that can use it.
MrPlow超过 13 年前
Isn't this just a fork of <a href="https://github.com/HotStudio/touchy/blob/master/jquery.touchy.js" rel="nofollow">https://github.com/HotStudio/touchy/blob/master/jquery.touch...</a>?
评论 #3559619 未加载