Sha256: fa1bd33aa84354df74bcf626aad1b599cd0d8e522eee8fe331b4fbcf1739930e
Contents?: true
Size: 345 Bytes
Versions: 64
Compression:
Stored size: 345 Bytes
Contents
export default function detectSupportsPassive() { let supportsPassive = false; try { let opts = Object.defineProperty({}, 'passive', { get() { supportsPassive = true; } }); window.addEventListener('testPassive', null, opts); window.removeEventListener('testPassive', null, opts); } catch (e) {} return supportsPassive; }
Version data entries
64 entries across 64 versions & 1 rubygems