search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

onScroll callback doesn't work

Asked by Val
5 months ago.

I'd like to something on vertical scroll but my callback didn't called

Answer posted by Dan Letecky [DayPilot]
5 months 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
5 months 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 3 months old and has been closed. Please create a new question if you have anything to add.