%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/node_modules/@popperjs/core/lib/dom-utils/
Upload File :
Create Path :
Current File : /var/www/html/node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js.flow

// @flow
import getWindowScroll from './getWindowScroll';
import getWindow from './getWindow';
import { isHTMLElement } from './instanceOf';
import getHTMLElementScroll from './getHTMLElementScroll';
import type { Window } from '../types';

export default function getNodeScroll(node: Node | Window) {
  if (node === getWindow(node) || !isHTMLElement(node)) {
    return getWindowScroll(node);
  } else {
    return getHTMLElementScroll(node);
  }
}

Zerion Mini Shell 1.0