File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ class DragHandler extends Handler {
76
76
on ( this . dom , 'mouseleave' , this . onMouseUp , this ) ;
77
77
}
78
78
this . fire ( 'mousedown' , {
79
- 'domEvent' : actual ,
79
+ 'domEvent' : event ,
80
80
'mousePos' : new Point ( actual . clientX , actual . clientY )
81
81
} ) ;
82
82
}
@@ -94,13 +94,13 @@ class DragHandler extends Handler {
94
94
}
95
95
if ( ! this . moved ) {
96
96
this . fire ( 'dragstart' , {
97
- 'domEvent' : actual ,
97
+ 'domEvent' : event ,
98
98
'mousePos' : this . startPos . copy ( )
99
99
} ) ;
100
100
this . moved = true ;
101
101
} else {
102
102
this . fire ( 'dragging' , {
103
- 'domEvent' : actual ,
103
+ 'domEvent' : event ,
104
104
'mousePos' : new Point ( actual . clientX , actual . clientY )
105
105
} ) ;
106
106
}
@@ -110,7 +110,7 @@ class DragHandler extends Handler {
110
110
const actual = event . changedTouches ? event . changedTouches [ 0 ] : event ;
111
111
this . _offEvents ( ) ;
112
112
const param = {
113
- 'domEvent' : actual
113
+ 'domEvent' : event
114
114
} ;
115
115
if ( isNumber ( actual . clientX ) ) {
116
116
param [ 'mousePos' ] = new Point ( parseInt ( actual . clientX , 0 ) , parseInt ( actual . clientY , 0 ) ) ;
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ class MapDragHandler extends Handler {
106
106
this . _start ( param ) ;
107
107
const map = this . target ;
108
108
map . onMoveStart ( param ) ;
109
- const p = getEventContainerPoint ( param . domEvent , map . getContainer ( ) ) ;
109
+ const p = getEventContainerPoint ( map . _getActualEvent ( param . domEvent ) , map . getContainer ( ) ) ;
110
110
this . startPrjCoord = map . _containerPointToPrj ( p ) ;
111
111
}
112
112
@@ -115,7 +115,7 @@ class MapDragHandler extends Handler {
115
115
return ;
116
116
}
117
117
const map = this . target ;
118
- const p = getEventContainerPoint ( param . domEvent , map . getContainer ( ) ) ;
118
+ const p = getEventContainerPoint ( map . _getActualEvent ( param . domEvent ) , map . getContainer ( ) ) ;
119
119
map . _setPrjCoordAtContainerPoint ( this . startPrjCoord , p ) ;
120
120
map . onMoving ( param ) ;
121
121
}
You can’t perform that action at this time.
0 commit comments