Subject of the issue
After it became possible to see the duration in the tooltip, I noticed that on large tracks the upper scale is displayed incorrectly. It displays a completely different time than in the hint.
This is not observed on short tracks.
Is it difficult to understand what is wrong? For understanding, I give a link to a branch with this example and screenshots.


Steps to reproduce
https://github.com/velocat/leaflet-elevation/tree/TestTrack
https://jsfiddle.net/velocat/pwyLxb9u/1/