开发者

How to simulate a click and drag operation on an ipad?

so this is the setup - An iframe inside a page.

the iframe holds a HTML5 canvas object, which responds to click (hold) and drag...

How do I get this working on an iPad?

I've considering creating even开发者_高级运维t handlers (ontouchstart, ontouchmove, ontouchend), but that didn't seem to work...

Any ideas?


If you want to allow touch interaction, that's the way to do it. Read Handling Multi-Touch Events in the Safari Web Content Guide.


There's jQuery plugin that helps you handle drag event in mobile devices. You can find it here.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜