Instead of setting timeout + movement directly, queue the position and consume the queue on interval callback. This allows to use a single interval callback, and indexed entries allows to order the queued positions, which prevents jumping of markers.
Instead of setting timeout + movement directly, queue the position and consume the queue on interval callback. This allows to use a single interval callback, and indexed entries allows to order the queued positions, which prevents jumping of markers.