mattdesl / mattdesl/touch-position

[Violation] Added non-passive event listener

Open
#4 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
14
Forks
3
PR merge metrics
No merged PRs in 30d

Description

This makes pan-zoom and other dependent components display warning in console.
I'd suggest [has-passive-events](https://ghub.io/has-passive-events) strategy

```js
element.addEventListener('touchmove', updateTouch, hasPassive ? {passive: false} : false)
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the touchmove listener shown in the issue and review how passive-event support is detected. Apply the suggested has-passive-events strategy there, then verify that pan-zoom and dependent components no longer produce the console warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.