Fixed bug where style was being emptied after animation end

This commit is contained in:
Niko 2022-02-14 15:41:42 +01:00
parent f65eef3532
commit 70722428cd
1 changed files with 1 additions and 1 deletions

View File

@ -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]);
}
}