forked from hammerjs/hammer.js
-
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
b6a8914
commit 712f5f6
Showing
13 changed files
with
342 additions
and
99 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 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,33 @@ | ||
var HAMMER_OPTIONS = { | ||
touchAction: 'pan-y' | ||
}; | ||
|
||
/** | ||
* hammer instance for an element | ||
* @param element | ||
* @param options | ||
* @constructor | ||
*/ | ||
function Hammer(element, options) { | ||
this.element = element; | ||
this.options = options || HAMMER_OPTIONS; | ||
|
||
this.sessions = []; | ||
|
||
this.input = new Input(this); | ||
this.touchAction = new TouchAction(this, this.options.touchAction); | ||
} | ||
|
||
Hammer.defaults = HAMMER_OPTIONS; | ||
|
||
/** | ||
* destroy the instance | ||
*/ | ||
Hammer.prototype.destroy = function() { | ||
this.sessions.length = 0; | ||
this.input.destroy(); | ||
}; | ||
|
||
|
||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Input.PointerEvent = function(pointers) { | ||
|
||
}; |
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
Oops, something went wrong.