(el)
| 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 | { |