Releases: davidjerleke/embla-carousel
Releases · davidjerleke/embla-carousel
v2.0.0 - More consistent API naming, link slides
🌟 New features
Improved drag accuracy:
- Pointer actions have been redesigned to have a higher accuracy and feel more natural.
Improved link handling:
- Links can now be used as slides.
- Links can now be used inside slides.
- Embla can differentiate between a click and drag interaction.
API methods added:
scrollSnapList()
⚠️ Breaking changes
API method name changes:
- next() -->
scrollNext()
- previous() -->
scrollPrev()
- goTo() -->
scrollTo()
- selectedIndex -->
selectedScrollSnap()
- previousIndex -->
previousScrollSnap()
API removed methods:
groupedIndexes()
v1.0.0 - Redesigned API
⚠️ Breaking changes
Options name changes:
- groupSlides -->
slidesToScroll
API method name changes:
- hasPreviousIndex() -->
canScrollPrevious()
- hasNextIndex() -->
canScrollNext()
API removed methods:
- isLastIndex()
- isFirstIndex()
v0.9.4 - Fallback for loop options if only 1 slide
🛠 Bugfixes
When loop: true
and the carousel container only contains a single slide, it will fallback to loop: false
. Discussed in issue #12.
v0.9.0 - New API index methods
🌟 New features
Added following methods to the API
:
isFirstIndex()
isLastIndex()
hasPreviousIndex()
hasNextIndex()
v0.8.0 - Improved dragFree feature
👉 Changes
dragFree
feature has been improved and changed to mimic -webkit-overflow-scrolling: touch;
behavior.
v0.7.2 - Lowered drag threshold
👉 Changes
Drag threshold has been lowered. Less drag force is now required for a slide change to occur.
v0.7.0 - Added API methods and renamed some
🌟 New features
previousIndex()
has been added.groupedIndexes()
has been added.
⚠️ Breaking changes
getContainer()
has changed tocontainerNode()
.getSlides()
has changed toslideNodes()
.
v0.6.0 - Added groupSlides feature
🌟 New features
Added the groupSlides
feature.
v0.5.0 - Added internal resize & changeOptions method
🌟 New features
The changeOptions
method has been added to the API.
👉 Changes
Added an internal resize listener to track slide size changes on window resize.
v0.4.0 - Added dragFree feature
🌟 New features
Added the dragFree
feature.