admin管理员组文章数量:1434121
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 badge2 Answers
Reset to default 2You 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...
});
本文标签: javascriptjQuery mousemove() In IphoneStack Overflow
版权声明:本文标题:javascript - jQuery mousemove() In Iphone - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745613062a2666229.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论