Skip to main content

Bug Tracker

Side navigation

#15122 closed bug (notabug)

Opened May 31, 2014 05:46AM UTC

Closed May 31, 2014 12:49PM UTC

Jquery imagdrag and clone not working in ipad

Reported by: mpsaravanan Owned by:
Priority: high Milestone: None
Component: unfiled Version: 1.11.1
Keywords: Cc:
Blocked by: Blocking:
Description

Here is my code. This code working fine in desktop and mobiles but not working in ipad only.

function showFly(id){

var cart = $('.destination');

var imgtodrag = $(".flythisproject_"+id).find("img").eq(0);

if (imgtodrag) {

var imgclone = imgtodrag.clone()

.offset({

top: imgtodrag.offset().top,

left: imgtodrag.offset().left

})

.css({

'opacity': '0.5',

'position': 'absolute',

'height': '50px',

'width': '50px',

'z-index': '100'

})

.appendTo($('body'))

.animate({

'top': cart.offset().top + 10,

'left': cart.offset().left + 10,

'width': 75,

'height': 75

}, 1000, 'easeInOutExpo');

setTimeout(function () {

cart.effect("shake", {

times: 2

}, 200);

}, 1500);

imgclone.animate({

'width': 0,

'height': 0

}, function () {

$(this).detach()

});

}

}

Attachments (0)
Change History (2)

Changed May 31, 2014 05:49AM UTC by mpsaravanan comment:1

How to fix this issue

Changed May 31, 2014 12:49PM UTC by dmethvin comment:2

resolution: → notabug
status: newclosed

Please ask for help on our forum or StackOverflow.