support.js 242 B

12345678910
  1. export function isPreventScrollSupported() {
  2. let supported = false;
  3. document.createElement('div').focus({
  4. get preventScroll() {
  5. supported = true;
  6. return false;
  7. }
  8. });
  9. return supported;
  10. }