Skip to content

v2.6.0 - Click Allowed

Compare
Choose a tag to compare
@davidjerleke davidjerleke released this 14 Nov 15:00
· 1340 commits to master since this release

🌟 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.