Add to Carousel new Embla options: watchDrag
, watchResize
, watchSlides
from release v8.0.0
#6295
Closed
eugeniudedin
started this conversation in
Feature requests
Replies: 1 comment 2 replies
-
Upgrading embla version requires breaking changes. No changes are planned to be made for carousel package until 8.00 release. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
watchDrag
This new option adds the possibility to cancel the default drag behaviour. For example, it's useful if you need to disable dragging when a user wants to scroll an element inside a slide.
watchResize
Embla is no longer listening to the window resize event. Instead, it's using
ResizeObserver
on its container and slides. If any size has changed it will re-initialize by callingreInit
automatically.watchSlides
This new option adds the feature of Embla automatically re-initializing by calling
reInit
when slides have been added or removed, usingMutationObserver
.Beta Was this translation helpful? Give feedback.
All reactions