Nathan Campos
Nathan Campos

Reputation: 29497

Moving Objects Using Javascript

I want to make some interactions with some images on my site. I want to let the possibility to user of clicking on a image, holding it and then drag it everywhere he wants it on the page. Is this possible using only Javascript, HTML5 and CSS3?

PS: I need it to run on iPhone Mobile Safari

Upvotes: 0

Views: 912

Answers (2)

Bitsplitter
Bitsplitter

Reputation: 980

It is possible to implement drag and drop using only Javascript, see here.

However, it is not possible to implement this on mobile safari because it will interpret the drag operation as a scroll.

Upvotes: 1

AyKarsi
AyKarsi

Reputation: 9675

Should be possible. This jQuery Mobile plugin seems to support what you need:

http://plugins.jquery.com/project/mobiledraganddrop

Upvotes: 2

Related Questions