@@ -25,7 +25,7 @@ export class PointerEvents {
25
25
private pointerUp : any ,
26
26
private zone : boolean ,
27
27
private option : any ) {
28
-
28
+
29
29
this . rmTouchStart = listenEvent ( ele , 'touchstart' , zone , option , ( ev : any ) => this . handleTouchStart ( ev ) ) ;
30
30
this . rmMouseStart = listenEvent ( ele , 'mousedown' , zone , option , ( ev : any ) => this . handleMouseDown ( ev ) ) ;
31
31
}
@@ -92,19 +92,19 @@ export class PointerEvents {
92
92
destroy ( ) {
93
93
this . rmTouchStart && this . rmTouchStart ( ) ;
94
94
this . rmTouchStart = null ;
95
-
95
+
96
96
this . rmMouseStart && this . rmMouseStart ( ) ;
97
97
this . rmMouseStart = null ;
98
98
99
- this . stop ( ) ;
100
-
99
+ this . stop ( ) ;
100
+
101
101
this . pointerDown = null ;
102
102
this . pointerMove = null ;
103
103
this . pointerUp = null ;
104
104
105
105
this . ele = null ;
106
- }
107
-
106
+ }
107
+
108
108
}
109
109
110
110
@@ -119,8 +119,8 @@ export class UIEventManager {
119
119
listenRef ( ref : ElementRef , eventName : string , callback : any , option ?: any ) : Function {
120
120
return this . listen ( ref . nativeElement , eventName , callback , option ) ;
121
121
}
122
-
123
- pointerEventsRef ( ref : ElementRef , pointerStart : any , pointerMove : any , pointerEnd : any , option ?: any ) : Function {
122
+
123
+ pointerEventsRef ( ref : ElementRef , pointerStart : any , pointerMove : any , pointerEnd : any , option ?: any ) : PointerEvents {
124
124
return this . pointerEvents ( ref . nativeElement , pointerStart , pointerMove , pointerEnd , option ) ;
125
125
}
126
126
@@ -135,7 +135,7 @@ export class UIEventManager {
135
135
pointerUp ,
136
136
this . zoneWrapped ,
137
137
option ) ;
138
-
138
+
139
139
let removeFunc = ( ) => submanager . destroy ( ) ;
140
140
this . events . push ( removeFunc ) ;
141
141
return submanager ;
@@ -155,7 +155,7 @@ export class UIEventManager {
155
155
event ( ) ;
156
156
}
157
157
this . events . length = 0 ;
158
- }
158
+ }
159
159
}
160
160
161
161
function listenEvent ( ele : any , eventName : string , zoneWrapped : boolean , option : any , callback : any ) : Function {
0 commit comments