Skip to content

Commit 5c1ff68

Browse files
committed
Shapes: shiftKey forces move drag mode
* The move drag area may be hidden if a shape is partially visible. In these circumstance users could only resize a shape. * With this commit, users can press the shift key to move a shape regardless of the point where they click.
1 parent ac15570 commit 5c1ff68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/shapes/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ function setupDragElement(gd, shapePath, shapeOptions, index) {
379379
h = dragBBox.bottom - dragBBox.top,
380380
x = evt.clientX - dragBBox.left,
381381
y = evt.clientY - dragBBox.top,
382-
cursor = (w > MINWIDTH && h > MINHEIGHT) ?
382+
cursor = (w > MINWIDTH && h > MINHEIGHT && !evt.shiftKey) ?
383383
dragElement.getCursor(x / w, 1 - y / h) :
384384
'move';
385385

0 commit comments

Comments
 (0)