Releases: memob0x/scroll-padlock
Releases · memob0x/scroll-padlock
v3.0.0
The entire library has been rewritten to improve simplicity and maintainability.
Previously, it exported a class that observed the class
attribute changes and listened for scroll
and resize
events to update CSS variables.
import ScrollPadlock from "scroll-padlock";
const scrollPadlock = new ScrollPadlock();
document.scrollingElement.classList.add("scroll-padlock-locked");
It now exports a function that updates the CSS variables and can be called when needed.
import { setStyle } from "scroll-padlock";
setStyle();
document.scrollingElement.classList.add("scroll-padlock");
v2.4.2
- ditched chai in favor of node 20 native assertions
- dropped babel support
- removed sinon dependency
- updated node modules
- trivial github ci enhancements
v2.4.1
- simplified a bit the runtime complexity while building css rules
- node 20 native test runner adoption
- various trivial enhancements in source code
- updated node modules
v2.4.0
- scrollingElement is now used to establish what is the global element which scrolls the browser page (addresses #11)
- constructor signature changed: constructor options object, if provided, now shall be the first and only argument
- documentation enhancements
v2.2.0
- refactory
- added constructor options object
v2.0.0
- vdom compatibility
- e2e tests
v1.1.2
Minor version (mainly changes related to npmjs registry publication)
- Library renamed from "body-scroll-lock" (already taken on npmjs.com) to "scroll-padlock".
- package.json adjustments.
- README.md adjustments.