Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Bayheck committed Apr 23, 2024
1 parent 29d473b commit 6981503
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/client/core/utils/scroll.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,15 @@ export function hasScroll (el: Element): boolean {
export function getScrollableParents (element: HTMLElement): HTMLElement[] {
const parentsArray = domUtils.getParents(element);

if (domUtils.isElementInIframe(element)) {
const iframe = domUtils.getIframeByElement(element);
// if (domUtils.isElementInIframe(element)) {
// const iframe = domUtils.getIframeByElement(element);

if (iframe) {
const iFrameParents = domUtils.getParents(iframe);
// if (iframe) {
// const iFrameParents = domUtils.getParents(iframe);

parentsArray.concat(iFrameParents);
}
}
// parentsArray.concat(iFrameParents);
// }
// }

return nativeMethods.arrayFilter.call(parentsArray, hasScroll);
}

0 comments on commit 6981503

Please sign in to comment.