Leaflet.Polyline.SnakeAnim icon indicating copy to clipboard operation
Leaflet.Polyline.SnakeAnim copied to clipboard

performance.now() time resolution workaround

Open rfilmyer opened this issue 5 years ago • 0 comments

#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 NaNs everywhere.

rfilmyer avatar Apr 22 '19 16:04 rfilmyer