【问题标题】:IPad Safari touch eventsiPad Safari 触摸事件
【发布时间】:2011-08-24 16:41:15
【问题描述】:

iPad 中的 Mobile Safari 浏览器提供或检测到哪些触摸事件?

基本上 webkit 提供了什么?

我正在寻找与 Safari 中的 touchesBegan、touchesMoved 等等效的本机应用程序 (IOS SDK)。

【问题讨论】:

    标签: javascript html ipad safari mobile-safari


    【解决方案1】:
    【解决方案2】:

    这个项目处理得很好,我自己用过。

    http://cubiq.org/iscroll-4

    http://cubiq.org/dropbox/iscroll4/examples/simple/

    在 iDevice 上查看。

    【讨论】:

      【解决方案3】:

      iOS 和 Android 浏览器均支持 touchStart、touchEnd 和 touchMove:http://backtothecode.blogspot.com/2009/10/javascript-touch-and-gesture-events.html

      在 iOS 上检测多点触控事件似乎是可能的: http://www.html5rocks.com/mobile/touch.html

      如果你更喜欢 jQuery,还有 jQuery mobile:http://jquerymobile.com/demos/1.0a4.1/#docs/api/events.html

      【讨论】:

      • 我猜你错过了关于 native app (IOS SDK) 等价物的部分。除非 jQuery 现在发布原生 iOS 库。
      • 如果我需要在 iPad 上实现拖放功能(类似于jqueryui.com/demos/draggable),jQuery 移动库会提供帮助吗?它可以免费用于商业用途吗?还有什么其他选项我必须在 iPad 上实现拖放?
      猜你喜欢
      • 2015-11-06
      • 1970-01-01
      • 1970-01-01
      • 2015-02-06
      • 2011-02-27
      • 2011-03-29
      • 1970-01-01
      • 2011-03-29
      • 1970-01-01
      相关资源
      最近更新 更多