Added
- Added ArrowUp and ArrowDown key support for pager navigation, consistent with ArrowLeft and ArrowRight. Arrow key events on the pager now call
preventDefault()to prevent the page from scrolling. - Added
inertattribute to the pager when the slider has no overflow, ensuring hidden pager controls are fully removed from keyboard and assistive technology focus. - Added support for dynamically showing or hiding slides via
display: none. Hidden slides are excluded from the slide list, and the MutationObserver now watches for style attribute changes on child elements to refresh accordingly.
Fixed
- Fixed rapid navigation triggering multiple scroll jumps by introducing a navigation lock that resets on
scrollend(with ascroll-based fallback for unsupported browsers). - Fixed
getInViewItems()incorrectly including in-view markers from nested sliders by scoping the query to the current instance's slides only. - Fixed the track
tabindexbeing overwritten on re-init if a custom value was already set.
Full Changelog: 2.2.1...2.2.2