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