MCPcopy Index your code
hub / github.com/SortableJS/Sortable / getWindowScrollingElement

Function getWindowScrollingElement

Sortable.js:237–244  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

235 return [];
236 }
237 function getWindowScrollingElement() {
238 var scrollingElement = document.scrollingElement;
239 if (scrollingElement) {
240 return scrollingElement;
241 } else {
242 return document.documentElement;
243 }
244 }
245
246 /**
247 * Returns the "bounding client rect" of given element

Callers 8

_handleAutoScrollFunction · 0.90
AutoScroll.jsFile · 0.90
getRectFunction · 0.70
isScrolledPastFunction · 0.70
getRelativeScrollOffsetFunction · 0.70
Sortable.jsFile · 0.70
AutoScrollPluginFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…