开发者

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

开发者 https://www.devze.com 2023-03-15 00:18 出处:网络
so this is the setup - An iframe inside a page. the iframe holds a HTML5 canvas object, which responds to click (hold) and drag...

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

精彩评论

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