Scroll events: Human vs code triggered. Can we differentiate?
- Dominant language
- JavaScript
- Stars
- 333
- Forks
- 98
- PR merge metrics
- No merged PRs in 30d
Description
This is regarding scroll events.
Can I differentiate when a user scrolls from the ones triggered by code?
For example, in jquery we have ev.originalEvent which can tell if this event was triggered by a human.
Or maybe a way to pass custom data when triggering viewer scroll and access the same in event listeners?
Contributor guide
Research direction
Start by reviewing the viewer's scroll-event API and its existing event-dispatch behavior. Determine whether listeners can distinguish user-originated scrolling from programmatic scrolling, or receive custom data when scrolling is triggered. Done means providing a reliable distinction or documented event data, with behavior that is covered by the project's existing validation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100