UNPKG

react-rcs

Version:
13 lines (12 loc) 374 B
// ref https://github.com/WICG/EventListenerOptions/pull/30 function isPassive() { var supportsPassiveOption = false; try { addEventListener("test", null, Object.defineProperty({}, 'passive', { get: function () { supportsPassiveOption = true; } })); } catch(e) {} return supportsPassiveOption; }