Skip to content

Commit

Permalink
fix #39
Browse files Browse the repository at this point in the history
  • Loading branch information
biodiv committed May 11, 2023
1 parent 3003006 commit 4222322
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "contactjs",
"version": "2.1.6",
"version": "2.1.7",
"description": "Pointer gestures for your webapp",
"main": "dist/index.js",
"module": "dist/contact.js",
Expand Down
4 changes: 2 additions & 2 deletions src/gestures/Press.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ interface PressOptions extends GestureOptions {
export class Press extends SinglePointerGesture {
hasBeenEmitted: boolean;

private static minDuration = 600;
private static minDuration = 500;

constructor(domElement: HTMLElement, options?: Partial<PressOptions>) {
super(domElement, options);

this.eventBaseName = "press";

let globalMinDuration = 600;
let globalMinDuration = 500;
let globalMaxDistance = 10;
let globalMaxMaximumDistance = 20;

Expand Down
2 changes: 1 addition & 1 deletion src/gestures/Tap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class Tap extends SinglePointerGesture {

this.eventBaseName = "tap";

let globalMaxDuration = 200;
let globalMaxDuration = 499;
let liveMaxDistance = 30;
let globalMaxDistance = 30;

Expand Down

0 comments on commit 4222322

Please sign in to comment.