0.0.2 • Published 2 years ago

@herrenio/ngx-gestures v0.0.2

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

@herrenio/ngx-gestures

DEMO: coming soon

This gesture library provides a lightweight and flexible solution for incorporating a range of gestures into Angular applications. With customizable interactions, this library can enhance the usability and accessibility of your Angular app.

Installation

npm install @herrenio/ngx-gestures

Usage

Import the gesture module using

import {NgxGestureModule} from '@herrenio/ngx-gestures';

Tap gestures

Use the directive as follows

<div
  ngxTapGesture
  (tapCountReached)="tapCountReached()"
  [tapCount]="2"
  [maxTapIntervalMs]="200"
>
</div>

Following properties are available

NameDefaultDescription
tapCount2How many times has to be clicked/tapped until tapCountReached gets fired
maxTapIntervalMs200How much time (ms) is allowed between taps before the current tap interval gets canceled
0.0.2

2 years ago

0.0.1

2 years ago