tdesign-mobile-vue
Version:
tdesign-mobile-vue
29 lines (25 loc) • 616 B
JavaScript
/**
* tdesign v1.7.0
* (c) 2024 TDesign Group
* @license MIT
*/
import { ref } from 'vue';
import { isBrowser } from '../shared/util.js';
import '@babel/runtime/helpers/slicedToArray';
import 'lodash/isNumber';
import '../config.js';
var supportsPassive = ref(false);
if (!isBrowser) {
try {
var opts = {};
Object.defineProperty(opts, "passive", {
get: function get() {
supportsPassive.value = true;
return true;
}
});
window.addEventListener("test-passive", null, opts);
} catch (e) {}
}
export { supportsPassive };
//# sourceMappingURL=supportsPassive.js.map