When one edit a polyline or a polygon on mobiles, several middle markers are created. It gets clear when you save and edit it again, trying to move the new marker one more time.
The problem seems to be a misuse of touchmove event, which is called several times while dragging the marker and therefore calling the onDragStart listener more than once. I think that we can just remove the listener in the beginning of onDragStart function adding this line:
marker.off('touchmove', onDragStart, this);
When one edit a polyline or a polygon on mobiles, several middle markers are created. It gets clear when you save and edit it again, trying to move the new marker one more time.
The problem seems to be a misuse of touchmove event, which is called several times while dragging the marker and therefore calling the onDragStart listener more than once. I think that we can just remove the listener in the beginning of onDragStart function adding this line:
marker.off('touchmove', onDragStart, this);