简体   繁体   English

如何在iPad,iPhone上使用JS拖动东西?

[英]How to make things dragable with JS on iPad, iPhone?

you know, i'm searching for a way to move items via mouse-dragging (as we know from several slider plugins) handled by JS which will work on iPhone and iPad Browser too? 您知道吗,我正在寻找一种通过JS处理鼠标拖动(我们从几个滑块插件知道)来移动项目的方法,该方法也可以在iPhone和iPad浏览器上使用?

hope anybody can help me. 希望有人可以帮助我。 thanks a lot! 非常感谢!

I never tried it myself but you should be able to use special safari events for iphone and probably also ipad like touchstart, touchmove and touchend. 我从未亲自尝试过,但您应该可以为iPhone使用特殊的野生动物园活动,也许还可以为iPad使用touchstart,touchmove和touchend。

description from Apple: https://developer.apple.com/library/content/documentation/InternetWeb/Conceptual/SafariVisualEffectsProgGuide/InteractiveControl/InteractiveControl.html#//apple_ref/doc/uid/TP40008032-CH3-SW3 Apple的说明: https//developer.apple.com/library/content/documentation/InternetWeb/Conceptual/SafariVisualEffectsProgGuide/InteractiveControl/InteractiveControl.html#//apple_ref/doc/uid/TP40008032-CH3-SW3

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM