mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-06 22:29:44 +08:00
Swipe left for list items in the works
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
* Simple gesture controllers with some common gestures that emit
|
||||
* gesture events.
|
||||
*
|
||||
* Ported from github.com/EightMedia/hammer.js - thanks!
|
||||
* Ported from github.com/EightMedia/ionic.Gestures.js - thanks!
|
||||
*/
|
||||
(function(ionic) {
|
||||
|
||||
@ -90,17 +90,9 @@
|
||||
ionic.Gestures.event.determineEventTypes();
|
||||
|
||||
// Register all gestures inside ionic.Gestures.gestures
|
||||
if(this === this.window) {
|
||||
// this is a window, then only allow the Tap gesture to be added
|
||||
ionic.Gestures.detection.register(ionic.Gestures.gestures.Tap);
|
||||
ionic.Gestures.detection.register(ionic.Gestures.gestures.Drag);
|
||||
ionic.Gestures.detection.register(ionic.Gestures.gestures.Release);
|
||||
} else {
|
||||
// everything else but the window
|
||||
for(var name in ionic.Gestures.gestures) {
|
||||
if(ionic.Gestures.gestures.hasOwnProperty(name)) {
|
||||
ionic.Gestures.detection.register(ionic.Gestures.gestures[name]);
|
||||
}
|
||||
for(var name in ionic.Gestures.gestures) {
|
||||
if(ionic.Gestures.gestures.hasOwnProperty(name)) {
|
||||
ionic.Gestures.detection.register(ionic.Gestures.gestures[name]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user