Page 1 of 1
[ANGULAR] HorizontalScroll listener emits incorrect visibleDateRange
Posted: Wed Oct 13, 2021 9:57 pm
by derreck
Hi,
The horizontalScroll listener emits widely far-off visibleDateRanges, either in the past or future when the viewPreset is changed.
I've attached a POC that changes the viewPreset to demonstrate this.
Also, a screenshot is attached showing a visibleDateRange jump of 2020 to 2000 to 2021.
We fetch data based off this date range and it's causing us to fetch an unnecessarily large amount of data.
Re: [ANGULAR] HorizontalScroll listener emits incorrect visibleDateRange
Posted: Thu Oct 14, 2021 10:37 am
by saki
You are missing infiniteScroll:true
in your configuration. This option ensures that the visible range will be always reasonable (nobody would want to look at 100 years long timeline) and also that switching view presets will work as expected.
Re: [ANGULAR] HorizontalScroll listener emits incorrect visibleDateRange
Posted: Thu Oct 14, 2021 3:17 pm
by derreck
Hi Saki,
I tried enabling infiniteScroll to no avail. Issue still happens.
Re: [ANGULAR] HorizontalScroll listener emits incorrect visibleDateRange
Posted: Fri Oct 15, 2021 8:44 am
by johan.isaksson