aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/collectionFreeForm
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2020-05-08 19:51:07 -0400
committerBob Zeleznik <zzzman@gmail.com>2020-05-08 19:51:07 -0400
commitb8a376d01560dee12eaa17a0ac6668dee4470725 (patch)
tree6a49a47fb0f14089a3cb29c1c87d013bc0bad4d0 /src/client/views/collections/collectionFreeForm
parentfe98b0a9c436f498fcc16d05c24cdf6c684e7ab8 (diff)
fixed marquee when over a media item to allow dragging, too.
Diffstat (limited to 'src/client/views/collections/collectionFreeForm')
-rw-r--r--src/client/views/collections/collectionFreeForm/MarqueeView.tsx4
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 a85739af9..6c023b291 100644
--- a/src/client/views/collections/collectionFreeForm/MarqueeView.tsx
+++ b/src/client/views/collections/collectionFreeForm/MarqueeView.tsx
@@ -169,7 +169,7 @@ export class MarqueeView extends React.Component<SubCollectionViewProps & Marque
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) {
+ 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.
e.preventDefault();
}
@@ -613,7 +613,7 @@ export class MarqueeView extends React.Component<SubCollectionViewProps & Marque
render() {
return <div className="marqueeView"
- style={{ overflow: StrCast(this.props.Document._overflow), cursor: MarqueeView.DragMarquee ? "crosshair" : "hand" }}
+ style={{ overflow: StrCast(this.props.Document._overflow), cursor: MarqueeView.DragMarquee && this ? "crosshair" : "hand" }}
onScroll={(e) => e.currentTarget.scrollTop = e.currentTarget.scrollLeft = 0} onClick={this.onClick} onPointerDown={this.onPointerDown}>
{this._visible ? this.marqueeDiv : null}
{this.props.children}