Skip to content

Releases: xiel/embla-carousel-wheel-gestures

Support embla-carousel v8

10 May 06:50
Compare
Choose a tag to compare
Pre-release
  • Support for embla-carousel v8 (#179)
  • Align version number with mother package

embla-carousel v7

06 Jul 13:04
Compare
Choose a tag to compare
  • Adapt for the new embla-carousel v7 by @dermotduffy in #170
  • Upgrade the plugin to v3.x for compatibility with embla-carousel v7.x

Full Changelog: v2.2.0...v3.0.0

feat: target option

06 May 14:49
Compare
Choose a tag to compare
  • target option allows you to specify a different target to be observed for wheel events

Shadow DOM Support πŸ§›πŸ»β€β™€οΈ

18 Mar 21:19
Compare
Choose a tag to compare
  • Added Support for use in Shadow DOM #159

πŸ“¦ Published as v2.1.1


Full Changelog: v2.1.0...v2.1.1

feat: Global (Default) Options - v2.1.0

10 Feb 21:21
Compare
Choose a tag to compare

New Feature ✨

WheelGesturesPlugin.globalOptions = {
  wheelDraggingClass: 'my-class',
}

Full Changelog: v2.0.0...v2.1.0

Option: forceWheelAxis

08 Dec 20:33
Compare
Choose a tag to compare

What's Changed

  • add option to force wheel axis by @lukasIO in #149 #150
    • forceWheelAxis: 'x' | 'y'
  • Updated Demo to show axis features

Big thanks to @lukasIO for the idea and implementation! πŸ™

Full Changelog: v2.0.0...v2.0.3

Extra UMD Bundle

25 Nov 20:20
Compare
Choose a tag to compare
  • Exports for CJS and ESM modules stay the same
  • Adds an UMD bundle to the distributed package, so it can be included via unpkg etc. (fixes #147)
  • The plugin is exposed as EmblaCarouselWheelGestures on the global object (window), when embedding the UMD bundle using a script tag

UMD Demo

Usage

<script src="https://unpkg.com/embla-carousel/embla-carousel.umd.js"></script>
<script src="https://unpkg.com/embla-carousel-wheel-gestures/dist/embla-carousel-wheel-gestures.umd.js"></script>
<script type="text/javascript">
  EmblaCarousel(document.querySelector('.embla__viewport'), { skipSnaps: true }, [
    EmblaCarouselWheelGestures(),
  ])
</script>

Thanks to @davidcetinkaya for the idea to also provide an UMD bundle! πŸ’‘

Full Changelog: v2.0.0...v2.0.2

Embla Plugin

22 Nov 21:12
Compare
Choose a tag to compare
  • Wheel Gestures is now a Plugin for Embla using the new plugin system (PR #144)
  • ensure to pass the plugin instance in the new plugins array to Embla.

Examples

React

useEmblaCarousel({ skipSnaps: true }, [
  WheelGesturesPlugin()
])

Vanilla

const embla = EmblaCarousel(
  viewPort as HTMLElement,
  {
    loop: false,
    skipSnaps: true,
  },
  [
    // Add support for wheel gestures
    WheelGesturesPlugin(),
  ]
)

Full Changelog: v1.2.0...v2.0.0

Compatibility for Embla v6

16 Nov 08:12
5b8c0a6
Compare
Choose a tag to compare
  • Upgrade for embla-carousel v6 (by @ikuyok & @xiel in #142 #145)
    • Compatibility with previous versions of embla-carousel is maintained to make auto-upgrading a breeze.

Full Changelog: v1.1.1...v1.2.0

Improved UX for coarse deltas

28 Apr 20:35
Compare
Choose a tag to compare
  • Fix: Improved UX for coarse deltas (emitted by non-pixel-precision devices), which caused carousel to get stuck temporarily (#116)
  • Overall better UX for all input devices
  • Improved IE10/11 error behaviour add info about required polyfills

Thanks to @Ocupe for opening the ticket and validating the fix.