Remove events from document on mobile (touch)
This commit is contained in:
parent
0fbe36b989
commit
f65eef3532
|
@ -56,6 +56,8 @@ function dragElement(elmnt, options, onStopDrag) {
|
|||
onStopDrag([ipos3, ipos4], [pos3, pos4]);
|
||||
document.onmouseup = null;
|
||||
document.onmousemove = null;
|
||||
document.ontouchend = null;
|
||||
document.ontouchmove = null;
|
||||
if (options.return2start)
|
||||
elmnt.removeAttribute('style');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue