util.js 249 B

123456
  1. /**
  2. * Test usage export. Do not use in your production
  3. */
  4. export function isBodyOverflowing() {
  5. return document.body.scrollHeight > (window.innerHeight || document.documentElement.clientHeight) && window.innerWidth > document.body.offsetWidth;
  6. }