ant-design-vue
Version:
An enterprise-class UI design language and Vue-based implementation
12 lines • 398 B
JavaScript
// Test via a getter in the options object to see if the passive property is accessed
var supportsPassive = false;
try {
var opts = Object.defineProperty({}, 'passive', {
get: function get() {
supportsPassive = true;
}
});
window.addEventListener('testPassive', null, opts);
window.removeEventListener('testPassive', null, opts);
} catch (e) {}
export default supportsPassive;