-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ba410f5
commit ca19360
Showing
106 changed files
with
3,417 additions
and
1,645 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,4 @@ yarn-error.log | |
.idea | ||
.reify-cache | ||
.nyc_output | ||
dist.min.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Pan | ||
|
||
Recognized when the pointer is down and moved in the allowed direction. | ||
|
||
## Constructor | ||
|
||
```ts | ||
import {EventManager, Pan, InputDirection} from 'mjolnir.js'; | ||
|
||
const eventManager = new EventManager({ | ||
// ... | ||
recognizers: [ | ||
new Pan({direction: InputDirection.Horizontal}) | ||
] | ||
}); | ||
``` | ||
|
||
* `options` (object, optional) - Options | ||
- `event` (string) - Name of the event. Default `'pan'`. | ||
- `pointers` (number) - Required pointers. Default `1`. | ||
- `threshold` (number) - Minimal pan distance required before recognizing. Default `10`. | ||
- `direction` {InputDirection} - Direction of the panning. Default `InputDirection.All`. | ||
|
||
## Events | ||
|
||
- pan, together with all of below | ||
- panstart | ||
- panmove | ||
- panend | ||
- pancancel | ||
- panleft | ||
- panright | ||
- panup | ||
- pandown | ||
|
||
## Source | ||
|
||
https://github.com/visgl/mjolnir.js/blob/master/src/hammerjs/recognizers/pan.ts |
Oops, something went wrong.