Remove events from document on mobile (touch)

This commit is contained in:
Niko 2022-02-14 15:25:28 +01:00
parent 0fbe36b989
commit f65eef3532
1 changed files with 2 additions and 0 deletions

View File

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