onScroll callback doesn't work
Asked by Val
6 years ago.
I'd like to something on vertical scroll but my callback didn't called
Answer posted by Dan Letecky [DayPilot]
6 years ago.
The onScroll event is only fired if dynamic event loading is enabled (https://doc.daypilot.org/scheduler/dynamic-event-loading/).
You can hook the "scroll" event directly like this:
dp.nav.scroll.addEventListener("scroll", function(ev) {
// your code here
});
</pre.
Comment posted by Val
6 years ago.
i can have access to dp via "this" into some method. So, what method is best place for do it ?
This question is more than 1 month old and has been closed. Please create a new question if you have anything to add.