views:

34

answers:

1

Check the url http://bit.ly/bN6EFH Its working fine in all browsers but when i run this in iphone safari, it does not work correctly. Its just a javascript code that finds click and drag event. Using click n drag i am changing images. Please click n drag images.

I need some special code for making this work in iphone safari?

+2  A: 

Mobile webkit doesn't use mousedown/mouseup events that are the basis for conventional web drag and drop. Instead, mobile webkit uses touch events.

Have a look at this blog post for details:

http://www.sitepen.com/blog/2008/07/10/touching-and-gesturing-on-the-iphone/

desau