MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / postScrollToParent

Function postScrollToParent

scripts/smoothScroll.js:689–698  ·  view source on GitHub ↗
(deltaX, deltaY)

Source from the content-addressed store, hash-verified

687 return smoothBehaviorForElement[id];
688 }
689 function postScrollToParent(deltaX, deltaY) {
690 parent.postMessage(
691 {
692 deltaX: deltaX,
693 deltaY: deltaY,
694 SS: "SmoothScroll",
695 },
696 "*"
697 );
698 }
699 /***********************************************
700 * HELPERS
701 ***********************************************/

Callers 1

wheelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected