Fixed bug where style was being emptied after animation end
This commit is contained in:
parent
f65eef3532
commit
70722428cd
|
@ -53,13 +53,13 @@ function dragElement(elmnt, options, onStopDrag) {
|
|||
|
||||
function closeDragElement() {
|
||||
// stop moving when mouse button is released:
|
||||
onStopDrag([ipos3, ipos4], [pos3, pos4]);
|
||||
document.onmouseup = null;
|
||||
document.onmousemove = null;
|
||||
document.ontouchend = null;
|
||||
document.ontouchmove = null;
|
||||
if (options.return2start)
|
||||
elmnt.removeAttribute('style');
|
||||
onStopDrag([ipos3, ipos4], [pos3, pos4]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue