移动Safari中的本机HTML5拖放(iPad,iPod,iPhone)?

移动Safari中的本机HTML5拖放(iPad,iPod,iPhone)?,第1张

概述我已经成功地实现了本机HTML5拖放功能,用于在页面内移动HTML元素(就是说,将div从一个地方移到另一个地方,与主机 *** 作系统文件的交互无关)。这在Chrome和Safari在PC上工作正常,但是我无法在iPad的Safari中启动拖动 *** 作。 我到目前为止发现了这一点: Using Drag and Drop From JavaScript Safari, Dashboard, and WebK 我已经成功地实现了本机HTML5拖放功能,用于在页面内移动HTML元素(就是说,将div从一个地方移到另一个地方,与主机 *** 作系统文件的交互无关)。这在Chrome和Safari在PC上工作正常,但是我无法在iPad的Safari中启动拖动 *** 作。

我到目前为止发现了这一点:

Using Drag and Drop From JavaScript

Safari,Dashboard,and WebKit-based
applications include support for
customizing the behavior of drag and
drop operations within your HTML
pages.

Note: This technology is supported
only on desktop versions of Safari.
For iPhone OS,use DOM touch,
described in Handling Events (part of
Safari Web Content GuIDe) and Safari
DOM Additions Reference.

Here.但它已经过时了(2009-06-08)。

Doe的任何人都知道是否可以在Mobile Safari中使用本机HTML5? (我不想像JavaScript框架像jquery UI那样的解决方案)。

谢谢!

解决方法 它可能是老的,但它仍然是最新的。 Here’s a good article on getting drag and drop working with ontouchstart and ontouchmove 总结

以上是内存溢出为你收集整理的移动Safari中的本机HTML5拖放(iPad,iPod,iPhone)?全部内容,希望文章能够帮你解决移动Safari中的本机HTML5拖放(iPad,iPod,iPhone)?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1086447.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-27
下一篇2022-05-27

发表评论

登录后才能评论

评论列表(0条)

    保存