开发者

Javascript touch events

开发者 https://www.devze.com 2023-01-26 21:30 出处:网络
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 al

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

精彩评论

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