File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -320,7 +320,6 @@ class Stage extends React.Component {
320
320
if ( this . state . dragId ) return ;
321
321
const drawableId = this . renderer . pick ( x , y ) ;
322
322
if ( drawableId === null ) return ;
323
- const drawableData = this . renderer . extractDrawable ( drawableId , x , y ) ;
324
323
const targetId = this . props . vm . getTargetIdForDrawableId ( drawableId ) ;
325
324
if ( targetId === null ) return ;
326
325
@@ -332,6 +331,9 @@ class Stage extends React.Component {
332
331
// Dragging always brings the target to the front
333
332
target . goToFront ( ) ;
334
333
334
+ // Extract the drawable art
335
+ const drawableData = this . renderer . extractDrawable ( drawableId , x , y ) ;
336
+
335
337
this . props . vm . startDrag ( targetId ) ;
336
338
this . setState ( {
337
339
isDragging : true ,
You can’t perform that action at this time.
0 commit comments