v2.6.0 - Click Allowed
🌟 New features
The API method clickAllowed()
is a new feature. This feature was requested in issue #22 and #24.
embla.clickAllowed()
This method is an opt-in feature. Here is how it works: It returns false
if:
Mouse Pointers
- Mouse drags the carousel.
Touch Pointers
- Touch drags the carousel.
- Carousel is in motion (i.e. is scrolling).
Otherwise it will return true
.