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

Function isScrollBehaviorSmooth

scripts/smoothScroll.js:681–688  ·  view source on GitHub ↗
(el)

Source from the content-addressed store, hash-verified

679 }
680 // for all other elements
681 function isScrollBehaviorSmooth(el) {
682 let id = uniqueID(el);
683 if (smoothBehaviorForElement[id] == null) {
684 let scrollBehavior = getComputedStyle(el, "")["scroll-behavior"];
685 smoothBehaviorForElement[id] = "smooth" == scrollBehavior;
686 }
687 return smoothBehaviorForElement[id];
688 }
689 function postScrollToParent(deltaX, deltaY) {
690 parent.postMessage(
691 {

Callers 1

scrollArrayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected