aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/collectionFreeForm
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2019-04-27 09:17:13 -0400
committerBob Zeleznik <zzzman@gmail.com>2019-04-27 09:17:13 -0400
commit36fd1b6b6c1ba02be08609176ed7c3e5d0e7f4c4 (patch)
tree56f147d7aeccc3ca99e1fd1d5d26bd1a004d677e /src/client/views/collections/collectionFreeForm
parent0320c6e850c7b2678a279b446988d0477e3b4660 (diff)
fixed marquee and doc decorations bugs
Diffstat (limited to 'src/client/views/collections/collectionFreeForm')
-rw-r--r--src/client/views/collections/collectionFreeForm/MarqueeView.tsx6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/client/views/collections/collectionFreeForm/MarqueeView.tsx b/src/client/views/collections/collectionFreeForm/MarqueeView.tsx
index 89308d573..da1170759 100644
--- a/src/client/views/collections/collectionFreeForm/MarqueeView.tsx
+++ b/src/client/views/collections/collectionFreeForm/MarqueeView.tsx
@@ -78,7 +78,9 @@ export class MarqueeView extends React.Component<MarqueeViewProps>
if (!e.cancelBubble) {
if (Math.abs(this._lastX - this._downX) > Utils.DRAG_THRESHOLD ||
Math.abs(this._lastY - this._downY) > Utils.DRAG_THRESHOLD) {
- this._visible = true;
+ if (!this._commandExecuted) {
+ this._visible = true;
+ }
e.stopPropagation();
e.preventDefault();
}
@@ -173,7 +175,7 @@ export class MarqueeView extends React.Component<MarqueeViewProps>
});
this.marqueeInkDelete(inkData);
- SelectionManager.DeselectAll();
+ // SelectionManager.DeselectAll();
if (e.key === "r") {
let summary = Documents.TextDocument({ x: bounds.left, y: bounds.top, width: 300, height: 100, backgroundColor: "yellow", title: "-summary-" });
summary.GetPrototype()!.CreateLink(newCollection.GetPrototype()!);