Leaflet.Polyline.SnakeAnim
Leaflet.Polyline.SnakeAnim copied to clipboard
performance.now() time resolution workaround
#29 is caused by some browsers (especially Firefox from version 60-now) reporting time with a lower resolution than expected. This one-line fix ensures that _snakeForward
will never try to move forward 0.0 pixels and start throwing NaN
s everywhere.