Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 

11 řádky
495 B

  1. export function isVisible(scrollbar, elem) {
  2. var bounding = scrollbar.bounding;
  3. var targetBounding = elem.getBoundingClientRect();
  4. // check overlapping
  5. var top = Math.max(bounding.top, targetBounding.top);
  6. var left = Math.max(bounding.left, targetBounding.left);
  7. var right = Math.min(bounding.right, targetBounding.right);
  8. var bottom = Math.min(bounding.bottom, targetBounding.bottom);
  9. return top < bottom && left < right;
  10. }
  11. //# sourceMappingURL=is-visible.js.map