Abhishek
Abhishek

Reputation: 4340

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 event handlers (ontouchstart, ontouchmove, ontouchend), but that didn't seem to work...

Any ideas?

Upvotes: 1

Views: 3191

Answers (2)

chepukha
chepukha

Reputation: 2489

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

Upvotes: 0

jtbandes
jtbandes

Reputation: 118741

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.

Upvotes: 0

Related Questions