Files
webawesome/src/internal/support.ts
2021-02-26 09:09:13 -05:00

16 lines
285 B
TypeScript

//
// Determines if the browser supports focus({ preventScroll })
//
export function isPreventScrollSupported() {
let supported = false;
document.createElement('div').focus({
get preventScroll() {
supported = true;
return false;
}
});
return supported;
}