NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #2598 most downloaded on npm
The engine that powers scroll-into-view-if-needed
Last release 2 years ago
no release in 18 months
Release timing varies
gaps range from 3 weeks to 1.8 years
Nearly every release is documented
notes for 32 of 33 stable releases
Nothing withdrawn
no release was ever pulled
8 years old
33 releases · first in 2018
in if-needed mode, skip bounds checking for non-scrollable scrollingElement
scrolling zero-dimension elements ( #901 ) ( ffad204 ), closes #900
One column per quarter.
This release is also available on:
revert package.json and utils.js #882
support —moduleResolution node16
refactor: use import {compute} instead of import compute
deps: update dependency @sanity/pkg-utils to v2
deps: update devdependencies (non-major)
improve typings, reduce bundlesize
This release is also available on:
drops umd builds, and ships more modern syntax with ESM as baseline
This release is also available on:
## 1.0.20 (2022-11-29) ### Bug Fixes * support of shadow DOM
microbundle isn't exporting .cjs
correct scroll distance when frame in a scaled box
do not call isScrollable on null
missing typings (2e9eaab), closes #726
issue #720 where there is a conflict with typescript >= 4.0 typings for Window.visualViewport and same type defined by this library (#725) (72110c8),
signal to webpack that there's no side effects
## 1.0.12 (2020-01-02) ### Bug Fixes * scrollable if hidden by frame
nearest: target that matches the scrolling frame height should scroll
TypeScript: Allow boundary to be null
Remove side-effects property in package.json
Temporarily dropping shadow dom support as it breaks with anchor elements
## 1.0.7 (2018-07-21) ### Bug Fixes * missing link in README
body only counts as scrollable if documentElement is scrollable
coordinates: never return negative scroll positions
scrollMode: if-needed: cover more edge cases
scrollMode: if-needed: horizontal edge cases (#24) (9d80bbf), closes #17
if-needed: scrollTop edge case on subframe
error: throw TypeError instead of generic Error
readme: to trigger semantic release
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →