tiny-essentials
Version:
Collection of small, essential scripts designed to be used across various projects. These simple utilities are crafted for speed, ease of use, and versatility.
29 lines (19 loc) • 766 B
Markdown
### ✨ What's New
#### `TinyAfterScrollWatcher` gets smarter with `onStop()`! 🛑✨
You can now register functions to run **immediately after scrolling stops**, even **before** the `doAfterScroll()` queue is processed.
```js
watcher.onStop(() => {
console.log('Scroll just stopped!');
});
```
Need to remove it later? You can do that too:
```js
watcher.offStop(myStopCallback);
```
---
### ✅ Summary
* ➕ **Added**: `onStop(fn)` — triggers functions immediately after scroll ends.
* ➕ **Added**: `offStop(fn)` — unregisters a previously added stop callback.
* 🔁 `onStop` runs **before** the `doAfterScroll` queue.
Enjoy the added precision! 🌀
**Full Changelog**: https://github.com/JasminDreasond/Tiny-Essentials/compare/1.16.1...1.16.2