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

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

parent daeb7303
No related branches found
No related tags found
No related merge requests found
Pipeline #180973 failed
......@@ -298,7 +298,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