hashplan / calendar

Apache License 2.0
0 stars 0 forks source link

on scroll repeating event-group-date #9

Open hashplan opened 10 years ago

hashplan commented 10 years ago

Right now on scroll as more events load, the event-group-date panel loads every 5 results, even if it is the same day as the previously loaded events. It should only load for new day to serve as a divider.

romasolot commented 10 years ago

Right now on scroll as more events load, the event-group-date panel loads every 5 results, even if it is the same day as the previously loaded events. It should only load for new day to serve as a divider.

The logic currently works as follows:

  1. during the first load of any page with events - 5 events are pulled out (sorting by date)
  2. when user scrolls down to the end of the page 5 more events are pulled out (and it is repeated until all events are pulled out)

As far as I understand you'd like to group events and pull them out by days It can work this way:

  1. first 5 events or events for N days are pulled out during the first load (depends on which number is greater)
  2. 5 more events or events for N days are pulled out during scrolling down to the end of the page (depends on which number is greater)

We need this min number of 5 events so that to make user scroll down and the "user has scrolled down to the end of the page" event works

hashplan commented 10 years ago

Lets hold off on this one. Have to think a bit more.