mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-09-16 07:00:57 +00:00
7 lines
273 B
JavaScript
7 lines
273 B
JavaScript
// Package imports.
|
|
import detectPassiveEvents from 'detect-passive-events';
|
|
|
|
// This will either be a passive lister options object (if passive
|
|
// events are supported), or `false`.
|
|
export const withPassive = detectPassiveEvents.hasSupport ? { passive: true } : false;
|