stable

Clone or download

Read-only

IntersectionObserver instead of resize/scroll event listeners

Since the feature targets only decent browsers, we can use IntersectionObserver API[0] No functional changes. Part of story #16211: Set a header background image [0] https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API Change-Id: I68da66de53174efcdadc18a27a4b7550ad4732d6

Modified Files

Name
M src/scripts/project/admin/header-background/admin-index.ts +1 −1 Go to diff View file
M src/scripts/project/admin/header-background/pinned-button.test.ts +46 −48 Go to diff View file
M src/scripts/project/admin/header-background/pinned-button.ts +20 −27 Go to diff View file