This repository was archived by the owner on Feb 11, 2021. It is now read-only.
File tree 4 files changed +6
-6
lines changed
4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 32
32
dispatcher . releaseCapture ( pointerId , this ) ;
33
33
} ;
34
34
}
35
- if ( ! Element . prototype . setPointerCapture ) {
35
+ if ( window . Element && ! Element . prototype . setPointerCapture ) {
36
36
Object . defineProperties ( Element . prototype , {
37
37
'setPointerCapture' : {
38
38
value : s
Original file line number Diff line number Diff line change 94
94
this . cleanupMouse ( ) ;
95
95
} ,
96
96
cleanupMouse : function ( ) {
97
- pointermap . delete ( this . POINTER_ID ) ;
97
+ pointermap [ ' delete' ] ( this . POINTER_ID ) ;
98
98
}
99
99
} ;
100
100
Original file line number Diff line number Diff line change 41
41
return e ;
42
42
} ,
43
43
cleanup : function ( id ) {
44
- pointermap . delete ( id ) ;
44
+ pointermap [ ' delete' ] ( id ) ;
45
45
} ,
46
46
MSPointerDown : function ( inEvent ) {
47
47
pointermap . set ( inEvent . pointerId , inEvent ) ;
Original file line number Diff line number Diff line change 54
54
}
55
55
} ,
56
56
elementRemoved : function ( el ) {
57
- this . scrollType . delete ( el ) ;
57
+ this . scrollType [ ' delete' ] ( el ) ;
58
58
dispatcher . unlisten ( el , this . events ) ;
59
59
// remove touch-action from shadow
60
60
allShadows ( el ) . forEach ( function ( s ) {
61
- this . scrollType . delete ( s ) ;
61
+ this . scrollType [ ' delete' ] ( s ) ;
62
62
dispatcher . unlisten ( s , this . events ) ;
63
63
} , this ) ;
64
64
} ,
291
291
this . cleanUpPointer ( inPointer ) ;
292
292
} ,
293
293
cleanUpPointer : function ( inPointer ) {
294
- pointermap . delete ( inPointer . pointerId ) ;
294
+ pointermap [ ' delete' ] ( inPointer . pointerId ) ;
295
295
this . removePrimaryPointer ( inPointer ) ;
296
296
} ,
297
297
// prevent synth mouse events from creating pointer events
You can’t perform that action at this time.
0 commit comments