Skip to content
Snippets Groups Projects
Commit b91f0c14 authored by permcu's avatar permcu
Browse files

Do not trigger currentDate if last day is visible

It does not have to be the currentDate. This holds only for the first day.
parent 412e8e63
No related branches found
No related tags found
2 merge requests!355Implement infinite scrolling and by date navigation for coursebook,!350Resolve "Add simple course book list"
......@@ -259,9 +259,7 @@ export default {
if (entry.isIntersecting) {
// TODO: Make 165 a var?
if ((entry.boundingClientRect.top <= 165)
|| first
|| last) {
if ((entry.boundingClientRect.top <= 165) || first) {
console.log('@', date.toISODate());
this.setDate(date.toISODate());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment