Skip to content

Andarist/are-passive-events-supported

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

are-passive-events-supported

Check if the browser supports passive event listeners.

Example

import arePassiveEventsSupported from 'are-passive-events-supported'

window.addEventListener(
  'touchstart',
  () => {
    console.log('touchstart')
  },
  arePassiveEventsSupported() ? { passive: true } : undefined,
)

Similar projects

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published