mirror of
https://github.com/badlogic/heissepreise.git
synced 2024-06-24 09:25:53 +02:00
Remove console.logs
This commit is contained in:
parent
52f9fb32bf
commit
f6649ca1cc
|
@ -534,10 +534,8 @@ function newSearchComponent(
|
|||
|
||||
const observer = new IntersectionObserver(
|
||||
(entries) => {
|
||||
console.log(entries);
|
||||
for (const entry of entries) {
|
||||
const clientRect = entry.target.getBoundingClientRect();
|
||||
console.log(entry, clientRect.top, window.innerHeight)
|
||||
if (entry.intersectionRatio < 0.999 && (clientRect.top + clientRect.height) < window.innerHeight) { // Fix Edge issue
|
||||
entry.target.classList.add("wrapper--pinned");
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue
Block a user