Our pure JavaScript Scheduler component


Post 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.

Attachments
14108-horizontal-scroll-time-travel-issue.zip
(101.36 KiB) Downloaded 45 times
Screen Shot 2021-10-13 at 2.40.34 PM.png
Screen Shot 2021-10-13 at 2.40.34 PM.png (116.85 KiB) Viewed 573 times

Post 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.


Post by derreck »

Hi Saki,

I tried enabling infiniteScroll to no avail. Issue still happens.


Post by johan.isaksson »

Issue confirmed, bug ticket opened: https://github.com/bryntum/support/issues/3568

Best regards,
Johan Isaksson

Post Reply