Embla Plugin
- 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