File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -23,28 +23,28 @@ class EventWrapper extends React.Component {
23
23
24
24
handleResizeUp = e => {
25
25
if ( e . button !== 0 ) return
26
- e . stopPropagation ( )
27
26
this . context . draggable . onBeginAction ( this . props . event , 'resize' , 'UP' )
28
27
}
29
28
handleResizeDown = e => {
30
29
if ( e . button !== 0 ) return
31
- e . stopPropagation ( )
32
30
this . context . draggable . onBeginAction ( this . props . event , 'resize' , 'DOWN' )
33
31
}
34
32
handleResizeLeft = e => {
35
33
if ( e . button !== 0 ) return
36
- e . stopPropagation ( )
37
34
this . context . draggable . onBeginAction ( this . props . event , 'resize' , 'LEFT' )
38
35
}
39
36
handleResizeRight = e => {
40
37
if ( e . button !== 0 ) return
41
- e . stopPropagation ( )
42
38
this . context . draggable . onBeginAction ( this . props . event , 'resize' , 'RIGHT' )
43
39
}
44
40
handleStartDragging = e => {
45
- if ( e . button === 0 ) {
41
+ if ( e . button !== 0 ) return
42
+ // hack: because of the way the anchors are arranged in the DOM, resize
43
+ // anchor events will bubble up to the move anchor listener. Don't start
44
+ // move operations when we're on a resize anchor.
45
+ const isResizeHandle = e . target . className . includes ( 'rbc-addons-dnd-resize' )
46
+ if ( ! isResizeHandle )
46
47
this . context . draggable . onBeginAction ( this . props . event , 'move' )
47
- }
48
48
}
49
49
50
50
renderAnchor ( direction ) {
You can’t perform that action at this time.
0 commit comments