Skip to content

Releases: barthy-koeln/scroll-snap-slider

v3.1.1

23 Feb 23:17
32ea8c8
Compare
Choose a tag to compare

What's Changed

  • fix(main): start and stop resize observer with attach/detach by @barthy-koeln in #25
  • fix(draggable): cancel stop-listener when started dragging again by @barthy-koeln in #24

Full Changelog: v3.3.0...v3.1.1

v3.3.0 | Fixed slide-pass event details

10 Feb 18:20
2e56c88
Compare
Choose a tag to compare

Fixes incorrect slide numbers passed to slide-pass events. This was due to the asynchronous callback from requestAnimationFrame.

v3.2.0 | Modern packaging

18 Jan 15:41
8d928ec
Compare
Choose a tag to compare

Fixes usage with modern frameworks.

v3.2.0-rc.0 | Modern packaging

18 Jan 15:14
8ef9b24
Compare
Choose a tag to compare
Pre-release

Tries to use a more modern dual-build package for ESM, CJS and UMD.

v3.1.0 | ESM & UMD builds with vite

12 Apr 07:59
6470edb
Compare
Choose a tag to compare

Added different build types with vite.
The internal file names have changed, the import structure is the same.

v3.0.1 | Release Fix

01 Mar 18:58
Compare
Choose a tag to compare

Messed up the deployment, here's a fixed version.

v3.0.0 | TypeScript Rewrite and minor breaking changes

01 Mar 18:36
Compare
Choose a tag to compare

Migration from v2:

  • All options are passed in an object instead of individual constructor parameters
  • Use the .with method to initialize plugins
  • Open an issue if I've missed anything :)
const slider = new ScrollSnapSlider({ element }).with([
  new ScrollSnapAutoplay(1200),
  new ScrollSnapLoop
])

v2.6.0 | Detach Listeners and Loop Improvements

30 Dec 11:30
Compare
Choose a tag to compare

Features

  • ScrollSnapSlider::detachListeners now complements attachListeners

Improvements

  • ScrollSnapLoop disables the scroll listener while reordering stuff
  • Removed git hooks from postinstall

v2.5.0 — Multiple slides possible

12 May 10:57
Compare
Choose a tag to compare

This release allows having slides that are smaller than the slider itself.

Feature: Sizing method

By default, the first slide's offsetWidth is used to calculate everything. Override this method to change the slider's behavior.

/**
 * @callback sizingMethod
 * @param {ScrollSnapSlider} slider
 * @return {Number} integer size of a slide in pixels
 */

/**
 * Width of each slide
 * @type {sizingMethod}
 * @public
 */
this.sizingMethod = function (slider) {
  return slider.element.firstElementChild.offsetWidth
}

v2.4.1 — Rebuild order when disabling ScrollSnapLoop Plugin

06 May 17:07
Compare
Choose a tag to compare

[Fixes] Rebuild order when disabling ScrollSnapLoop Plugin #16