@@ -7,9 +7,6 @@ export class MdGestureConfig extends HammerGestureConfig {
77
88 /* List of new event names to add to the gesture support list */
99 events : string [ ] = [
10- 'drag' ,
11- 'dragright' ,
12- 'dragleft' ,
1310 'longpress' ,
1411 'slide' ,
1512 'slidestart' ,
@@ -41,14 +38,13 @@ export class MdGestureConfig extends HammerGestureConfig {
4138 // Notice that a HammerJS recognizer can only depend on one other recognizer once.
4239 // Otherwise the previous `recognizeWith` will be dropped.
4340 let slide = this . _createRecognizer ( pan , { event : 'slide' , threshold : 0 } , swipe ) ;
44- let drag = this . _createRecognizer ( slide , { event : 'drag' , threshold : 6 } , swipe ) ;
4541 let longpress = this . _createRecognizer ( press , { event : 'longpress' , time : 500 } ) ;
4642
4743 // Overwrite the default `pan` event to use the swipe event.
4844 pan . recognizeWith ( swipe ) ;
4945
5046 // Add customized gestures to Hammer manager
51- mc . add ( [ swipe , press , pan , drag , slide , longpress ] ) ;
47+ mc . add ( [ swipe , press , pan , slide , longpress ] ) ;
5248
5349 return mc ;
5450 }
@@ -58,7 +54,7 @@ export class MdGestureConfig extends HammerGestureConfig {
5854 let recognizer = new ( < RecognizerStatic > base . constructor ) ( options ) ;
5955
6056 inheritances . push ( base ) ;
61- inheritances . forEach ( ( item ) => recognizer . recognizeWith ( item ) ) ;
57+ inheritances . forEach ( item => recognizer . recognizeWith ( item ) ) ;
6258
6359 return recognizer ;
6460 }
0 commit comments