开发者

Javascript touch events

Hey! Just checkin in to see if there's a function similar to js onmousemove (jquery mousemove) for touch phones? Seems like jQ开发者_如何学Pythonuery mobile doesn't have it and I'm pretty new to all this with mobiles.

/tn


Check the jQuery UI for iPad and iPhone project. It supports Android too.


jQuery:

$(element).bind('touchmove', function(){

});

in jQuery-less javascript, it is ontouchmove.

If you want to convert your current mouse events over to touch, just add this 'touch punch' plugin:

http://touchpunch.furf.com/


This is very close to what I was looking for: http://swipejs.com/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜