@@ -7,7 +7,6 @@ export class MdGestureConfig extends HammerGestureConfig {
7
7
8
8
/* List of new event names to add to the gesture support list */
9
9
events : string [ ] = [
10
- 'drag' ,
11
10
'dragright' ,
12
11
'dragleft' ,
13
12
'longpress' ,
@@ -41,14 +40,13 @@ export class MdGestureConfig extends HammerGestureConfig {
41
40
// Notice that a HammerJS recognizer can only depend on one other recognizer once.
42
41
// Otherwise the previous `recognizeWith` will be dropped.
43
42
let slide = this . _createRecognizer ( pan , { event : 'slide' , threshold : 0 } , swipe ) ;
44
- let drag = this . _createRecognizer ( slide , { event : 'drag' , threshold : 6 } , swipe ) ;
45
43
let longpress = this . _createRecognizer ( press , { event : 'longpress' , time : 500 } ) ;
46
44
47
45
// Overwrite the default `pan` event to use the swipe event.
48
46
pan . recognizeWith ( swipe ) ;
49
47
50
48
// Add customized gestures to Hammer manager
51
- mc . add ( [ swipe , press , pan , drag , slide , longpress ] ) ;
49
+ mc . add ( [ swipe , press , pan , slide , longpress ] ) ;
52
50
53
51
return mc ;
54
52
}
@@ -58,7 +56,7 @@ export class MdGestureConfig extends HammerGestureConfig {
58
56
let recognizer = new ( < RecognizerStatic > base . constructor ) ( options ) ;
59
57
60
58
inheritances . push ( base ) ;
61
- inheritances . forEach ( ( item ) => recognizer . recognizeWith ( item ) ) ;
59
+ inheritances . forEach ( item => recognizer . recognizeWith ( item ) ) ;
62
60
63
61
return recognizer ;
64
62
}
0 commit comments