- Fix issue where
rollover
events were not working ifdragOutside
was enabled
- Fix issue where swipe events were not working on mobile devices
- Converted the main source file from JavaScript into TypeScript
- Fixed issue with Vue not recognizing the TS type definitions
- Added TSC into the build toolchain to build the
index.d.ts
type definition file
- Rewrote the event handling system to track events on a per-object basis.
- Added a new dragging option
dragOutside
which allows for drag events to be sent when the mouse is outside the object as well. - Fixed all issues arising with the implementation of
dragOutside
event handling. - Docs: Greatly improved the documentation for swipe, zoom and split it feature-wise
- Docs: Added more images and animations into the docs
- Changed the default value of
dragFrequency
to10 MS
(previously was100 MS
), meaning that drag events will be fired at 100 FPS by default rather than only at 10 FPS. - Changed the swipe detection to use a cone rather than using blocks, allowing for more variance in swipe gesture direction.
- Added swipe setting
swipeConeSize
to control the cone size. - Added zoom events
zoom
,zoom.in
andzoom.out
using multi-touch gesture tracking. - Added zoom options
zoomFrequency
,zoomDistance
,zoomInOutDistance
to customize the zoom behaviour.
- Added null check to the timer clear event
- Remove the touch-hold timer when unmounted
- Minor change to the swipe detection algorithm
- Add some missing options into the typescript definition
- Fix types and module declaration to work with Vue 3
- Fix module exports to work with Vite