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

Show first or last day in url if visible regardless of its position

parent f337c9ea
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"
......@@ -249,7 +249,9 @@ export default {
if (entry.isIntersecting) {
// TODO: Make 165 a var?
if (entry.boundingClientRect.top <= 165) {
if ((entry.boundingClientRect.top <= 165)
|| first
|| last) {
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