Tech
[程序员] geek-trusted-wheel-events
Scroll Events Even the Page Can't Tell Are Fake
Modern infinite-scroll pages don't load their feed because you asked nicely. Many of them check event.isTrusted on scroll events — the browser-set flag that distinguishes input originating from an actual user (OS input pipeline) from input synthesized by JavaScript ( element.dispatchEvent , window.scrollBy ). If the event says isTrusted: false , the page simply declines to fetch more content. It's a polite little fence, and it is genuinely ha...
Read the full discussion on V2EX
This article was aggregated from V2EX. Click to join the conversation.
View on V2EX