Skip to content
This repository was archived by the owner on Jan 19, 2023. It is now read-only.

Commit 0042ff3

Browse files
committed
Merge branch 'webcarrot-pinch-swipe-some-fixs'
2 parents 8c8b726 + 36283be commit 0042ff3

File tree

3 files changed

+481
-89
lines changed

3 files changed

+481
-89
lines changed

src/constant.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,19 @@ export const KEYS = {
2121
LEFT_ARROW: 37,
2222
RIGHT_ARROW: 39,
2323
};
24+
25+
// Actions
26+
export const ACTION_NONE = 0;
27+
export const ACTION_MOVE = 1;
28+
export const ACTION_SWIPE = 2;
29+
export const ACTION_PINCH = 3;
30+
export const ACTION_ROTATE = 4;
31+
32+
// Events source
33+
export const SOURCE_ANY = 0;
34+
export const SOURCE_MOUSE = 1;
35+
export const SOURCE_TOUCH = 2;
36+
export const SOURCE_POINTER = 3;
37+
38+
// Minimal swipe distance
39+
export const MIN_SWIPE_DISTANCE = 200;

0 commit comments

Comments
 (0)