@@ -343,6 +343,7 @@ class GeometryEditor extends Eventable(Class) {
343
343
function onHandleDragstart ( param ) {
344
344
this . _updating = true ;
345
345
if ( opts . onDown ) {
346
+ opts . onDown . call ( me , param [ 'containerPoint' ] , param ) ;
346
347
/**
347
348
* change geometry shape start event, fired when drag to change geometry shape.
348
349
*
@@ -352,14 +353,14 @@ class GeometryEditor extends Eventable(Class) {
352
353
* @property {Geometry } target - the geometry fires the event
353
354
*/
354
355
this . _geometry . fire ( 'handledragstart' ) ;
355
- opts . onDown . call ( me , param [ 'containerPoint' ] , param ) ;
356
356
}
357
357
return false ;
358
358
}
359
359
360
360
function onHandleDragging ( param ) {
361
361
me . _hideContext ( ) ;
362
362
if ( opts . onMove ) {
363
+ opts . onMove . call ( me , param ) ;
363
364
/**
364
365
* changing geometry shape event, fired when dragging to change geometry shape.
365
366
*
@@ -369,13 +370,14 @@ class GeometryEditor extends Eventable(Class) {
369
370
* @property {Geometry } target - the geometry fires the event
370
371
*/
371
372
this . _geometry . fire ( 'handledragging' ) ;
372
- opts . onMove . call ( me , param ) ;
373
373
}
374
374
return false ;
375
375
}
376
376
377
377
function onHandleDragEnd ( ev ) {
378
378
if ( opts . onUp ) {
379
+ //run mouseup code for handle delete etc
380
+ opts . onUp . call ( me , ev ) ;
379
381
/**
380
382
* changed geometry shape event, fired when drag end to change geometry shape.
381
383
*
@@ -385,7 +387,6 @@ class GeometryEditor extends Eventable(Class) {
385
387
* @property {Geometry } target - the geometry fires the event
386
388
*/
387
389
this . _geometry . fire ( 'handledragend' ) ;
388
- opts . onUp . call ( me , ev ) ;
389
390
}
390
391
this . _updating = false ;
391
392
return false ;
0 commit comments