javascript - jQuery mousemove() In Iphone - Stack Overflow

i have a question regarding jQuery mousemove() on iPhone. The problem is that it doesn't show the

i have a question regarding jQuery mousemove() on iPhone. The problem is that it doesn't show the movement on iPhone when touches occur; the events are not working properly in Safari on iPhone.

Can I get any tips of any Javascript plugins to fix this or detect movement on iPhone?

i have a question regarding jQuery mousemove() on iPhone. The problem is that it doesn't show the movement on iPhone when touches occur; the events are not working properly in Safari on iPhone.

Can I get any tips of any Javascript plugins to fix this or detect movement on iPhone?

Share Improve this question edited Feb 24, 2012 at 21:28 yuji 16.7k4 gold badges65 silver badges64 bronze badges asked Sep 1, 2011 at 10:34 Michael WestMichael West 11 silver badge1 bronze badge
Add a ment  | 

2 Answers 2

Reset to default 2

You can use jQuery mobile and use the virtual events created by that plugin (vmousemove for example). More info on the events here.

However this framework is NOT patible with every jQuery plug-in (for example some of jQuery-UI widgets are integrated in it, but in a different way). It probably works for plugin that are not event driven (i.e. that don't change the way the user interract).

An other choice is jQTouch but I don't know much about it.

You should use the touchmove event. Example of usage:

$('#selector').bind('touchmove', function(event)
{
    // your code...
});

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745613062a4636064.html

相关推荐

  • javascript - jQuery mousemove() In Iphone - Stack Overflow

    i have a question regarding jQuery mousemove() on iPhone. The problem is that it doesn't show the

    8小时前
    30

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信