diff options
| author | Bob Zeleznik <zzzman@gmail.com> | 2020-05-08 20:49:56 -0400 |
|---|---|---|
| committer | Bob Zeleznik <zzzman@gmail.com> | 2020-05-08 20:49:56 -0400 |
| commit | fd65d1ceb46226281a346ecd8221afea91dfe5db (patch) | |
| tree | a0fc1e8ddae0158925d226778784df80c1aa1cab | |
| parent | b8a376d01560dee12eaa17a0ac6668dee4470725 (diff) | |
another fix to marquee selection without a modifier key
| -rw-r--r-- | src/client/views/collections/collectionFreeForm/MarqueeView.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/collections/collectionFreeForm/MarqueeView.tsx b/src/client/views/collections/collectionFreeForm/MarqueeView.tsx index 6c023b291..285907776 100644 --- a/src/client/views/collections/collectionFreeForm/MarqueeView.tsx +++ b/src/client/views/collections/collectionFreeForm/MarqueeView.tsx @@ -168,9 +168,9 @@ export class MarqueeView extends React.Component<SubCollectionViewProps & Marque this._downX = this._lastX = e.clientX; this._downY = this._lastY = e.clientY; if (e.button === 2 || (e.button === 0 && (e.altKey || MarqueeView.DragMarquee))) { - this.setPreviewCursor(e.clientX, e.clientY, true); if (e.altKey || (MarqueeView.DragMarquee && this.props.active(true))) { - //e.stopPropagation(); // bcz: removed so that you can alt-click on button in a collection to switch link following behaviors. + this.setPreviewCursor(e.clientX, e.clientY, true); + (!e.altKey) && e.stopPropagation(); // bcz: removed so that you can alt-click on button in a collection to switch link following behaviors. e.preventDefault(); } // bcz: do we need this? it kills the context menu on the main collection if !altKey |
