Skip to content

Releases: scriptex/touchsweep

Use passive event listeners for better web vitals

17 Oct 13:04

Choose a tag to compare

Add move detection

16 Nov 07:25

Choose a tag to compare

New:

  1. This release adds support for swipemove detection.
  2. The coordinates of all swipe actions now are available in the event.detail. The coordinates contain details about start, move and end coordinates for both axes - x and y.

Improvements:

  1. New and improved typings.
  2. The eventData instance property is now public and can be accessed and modified.
const instance = new TouchSweep(document.getElementById('touchsweep'), { data: 2 }, 40)
const eventData = instance.eventData; // { data: 2 }

// Update the event data at any time
instance.eventData = { data: 2, value: 3 };

Use Rollup to build

01 Nov 08:13
637ec86

Choose a tag to compare

This release switches to Rollup as a build tool instead of the built-in TypeScript compiler.
The reason is the way TypeScript produces UMD bundles.
This release fixes #127

Migrate to TypeScript

30 Sep 06:09

Choose a tag to compare

BREAKING: It is no longer possible to use the TouchSweep module without a module bundler or via unpkg.com.

This release:

  • improves the mouse/touch event type detection.
  • migrates the codebase to TypeScript adding full TS support.
  • installs and configures ESLint
  • includes a new demo, available here

Mouse support

02 Mar 10:13

Choose a tag to compare

This release adds support for mouse events.

TypeScript definitions

20 Apr 07:28
65b03dc

Choose a tag to compare

This release adds TypeScript declarations file which enables TypeScript support.

Fix direction checks and update demo

08 Jun 13:00

Choose a tag to compare

This release fixes a minor issue when determing the direction of the swipe (thanks to @anonimusprogramus).
The demo has been updated to show how the event data can be updated.

New Year!

03 Jan 08:16

Choose a tag to compare

This release updates the distribution files and all dependencies

Optimized distribution

18 Aug 10:43

Choose a tag to compare

This release removes Webpack as a module bundler and uses Babel extensively.
Babel is now officially updated to v.7

First stable

29 Jun 05:50

Choose a tag to compare

0.1.0

Update README