The javascript ecosystem is such a shitshow. I search how to check if an element is visible in the viewport. The first result is an article that includes incorrect logic for testing if a rectangle overlaps a different rectangle. The second result is a Stack Overflow answer where the article likely copied the function from, as it’s identical. It has 1718 upvotes. There is a note in the comments saying it’s incorrect, with 110 upvotes.
=> More informations about this toot | View the thread | More toots from ruuda@fosstodon.org
text/gemini
This content has been proxied by September (ba2dc).