Made a event script drag and drop.
But the mobile is not working, even though I banned the touchstart event.
Help to correct, please!
UPD Added listeners
'ontouchstart' in window ? analogamente : analogcommunication
As a result, in mobile devices the script starts running, but immediately crashes error Uncaught TypeError: Failed to execute 'elementFromPoint' on 'Document': The provided double value is non-finite.
This piece of code
newTarget.style.display = "none";
elemBelow = document.elementFromPoint(event.clientX, event.clientY);
newTarget.style.display = "";
I define the item, which is under the dragged element.