mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
parent
dc714d2e5f
commit
1818c4c7b5
2 changed files with 3 additions and 3 deletions
|
@ -181,7 +181,7 @@ const rotationTooltipAnnotation = select(getRotationTooltipAnnotation)(
|
|||
cursorPosition
|
||||
);
|
||||
|
||||
const groupAction = select(getGroupAction)(actionEvent);
|
||||
const groupAction = select(getGroupAction)(actionEvent, mouseIsDown);
|
||||
|
||||
const grouping = select(getGrouping)(
|
||||
configuration,
|
||||
|
|
|
@ -1358,9 +1358,9 @@ export const getSnappedShapes = (
|
|||
export const getConstrainedShapesWithPreexistingAnnotations = (snapped, transformed) =>
|
||||
snapped.concat(transformed.filter(s => s.type === 'annotation'));
|
||||
|
||||
export const getGroupAction = action => {
|
||||
export const getGroupAction = (action, mouseIsDown) => {
|
||||
const event = action && action.event;
|
||||
return event === 'group' || event === 'ungroup' ? event : null;
|
||||
return !mouseIsDown && (event === 'group' || event === 'ungroup') ? event : null;
|
||||
};
|
||||
|
||||
export const getGroupedSelectedShapes = ({ selectedShapes }) => selectedShapes;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue