I'm struggling a bit with the position of horizontal scrolling, and making it stay where the user scrolled to. Some events trigger a reset of the scroll position for some reason. An example is rightclicking to show context menu after multi-select. Often, but not always, the horizontal scroll jumps away to another time.
I also have a custom calendar that changes the date of the scheduler (using cellGroupBy: 'Hour') and that also resets the scroll position. I also want the position to survive a route change in my Angular app, and potentially a refresh.
Given the wierd behavior, and the functionality I want, I basically want to store the scroll position in session, or in localStorage, and set the scrollPosition when Im loading/reloading/changing something in the scheduler.
So I have a couple of questions.
1. I'm not using dynamic event loading, so the onScroll event doesnt work for my scheduler. Is there an alternative event that I can use to get the current scroll position when the user scrolls?
2. When is it recommended to call "setScrollX" after a resource/event swap?
DayPilot version: 2018.4.3497
Angular version: 7.1.2