mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
parent
2e63955b9b
commit
0898d384d3
2 changed files with 3 additions and 3 deletions
|
@ -182,7 +182,7 @@ const rotationTooltipAnnotation = select(getRotationTooltipAnnotation)(
|
|||
cursorPosition
|
||||
);
|
||||
|
||||
const groupAction = select(getGroupAction)(actionEvent);
|
||||
const groupAction = select(getGroupAction)(actionEvent, mouseIsDown);
|
||||
|
||||
const groupingTuple = select(getGroupingTuple)(
|
||||
configuration,
|
||||
|
|
|
@ -1376,9 +1376,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