Infinity scroll with month and week scale

Hi, I`m trying to implement a infinite scroll like in this snippet, but when an set scale by month or by week the chart crash and scroll automatically. Somebody knows how to fixed this, or its a bug? Here its an example of my implementation.

** You have to scroll one time to crash

Hello Rafael,
The issue here is related to the custom implementation.
When you have the month scale and extend the timeline by days, it is expected that the function will try to extend the date range again.
You need to use the unit of the current scale.
Here is the updated snippet:
https://snippet.dhtmlx.com/wvlowdaa

I will update the example of the implementation.