'React google map: Infowindow autopan is not working when the infowindow position is changing in less than 100ms

My requirement to move the marker on the given path with info window also I provide the option of speed using that user can change the speed of marker,

The issue which I am facing is the info window is out of viewport if the position changing less than or equal to 100ms, if the position change in greater than 100ms then it is working, I tried map center for this issue and it is working but in case of map center user unable to drag the map, My Requirement info window should auto pan in any speed without map center property, could anyone help regarding this issue



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source