【问题标题】:How to make things dragable with JS on iPad, iPhone?如何在 iPad、iPhone 上使用 JS 使东西可拖动?
【发布时间】:2010-07-12 10:06:21
【问题描述】:

你知道,我正在寻找一种通过鼠标拖动来移动项目的方法(正如我们从几个滑块插件中知道的那样),由 JS 处理,它也适用于 iPhone 和 iPad 浏览器?

希望有人可以帮助我。 非常感谢!

【问题讨论】:

    标签: javascript iphone ipad draggable


    【解决方案1】:

    我自己从未尝试过,但您应该能够为 iphone 和 ipad 使用特殊的 safari 事件,例如 touchstart、touchmove 和 touchend。

    来自苹果的描述: https://developer.apple.com/library/content/documentation/InternetWeb/Conceptual/SafariVisualEffectsProgGuide/InteractiveControl/InteractiveControl.html#//apple_ref/doc/uid/TP40008032-CH3-SW3

    猜你喜欢
    • 1970-01-01
    • 2021-02-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-05-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多