I'm using Leaflet-Routing-Machine on ReactJS project. I've routes on the map. Problem occurs when the position of map changes or during zoom in / zoom out.
When I start dragging the map to change position, there is no issue, but when I stop the dragging, the route go back to its previous position first when I start dragging and then comes back to it's final position. So, it is not looking good visually. Is there anyone had faced this problem before?
Here is the video image so you can see visually, what is the problem. https://www.youtube.com/watch?v=dcVsKK2PA1g&feature=youtu.be