MCPcopy
hub / github.com/greensock/GSAP / scrollerProxy

Method scrollerProxy

src/ScrollTrigger.js:1445–1455  ·  view source on GitHub ↗
(target, vars)

Source from the content-addressed store, hash-verified

1443 }
1444
1445 static scrollerProxy(target, vars) {
1446 let t = _getTarget(target),
1447 i = _scrollers.indexOf(t),
1448 isViewport = _isViewport(t);
1449 if (~i) {
1450 _scrollers.splice(i, isViewport ? 6 : 2);
1451 }
1452 if (vars) {
1453 isViewport ? _proxies.unshift(_win, vars, _body, vars, _docEl, vars) : _proxies.unshift(t, vars);
1454 }
1455 }
1456
1457 static clearMatchMedia(query) {
1458 _triggers.forEach(t => t._ctx && t._ctx.query === query && t._ctx.kill(true, true));

Callers 2

ScrollSmootherFunction · 0.80
constructorMethod · 0.80

Calls 2

_getTargetFunction · 0.90
_isViewportFunction · 0.70

Tested by

no test coverage detected