Explorar o código

fix: can't scroll element inside iframe (#1581)

Ahmad Kholid hai 1 ano
pai
achega
ad3ba1162b
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      src/content/blocksHandler/handlerElementScroll.js

+ 1 - 3
src/content/blocksHandler/handlerElementScroll.js

@@ -2,15 +2,13 @@ import handleSelector from '../handleSelector';
 
 function isElScrollable(element) {
   const excludedTags = ['SCRIPT', 'STYLE', 'SVG', 'HEAD'];
-
-  const isOverflow = /scroll|auto/.test(getComputedStyle(element).overflow);
   const isScrollable =
     element.scrollHeight > element.clientHeight ||
     element.scrollWidth > element.clientWidth;
   const isExcluded =
     element.tagName.includes('-') || excludedTags.includes(element.tagName);
 
-  return isOverflow && isScrollable && !isExcluded;
+  return isScrollable && !isExcluded;
 }
 
 function findScrollableElement(