aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2019-04-25 01:38:42 -0400
committerBob Zeleznik <zzzman@gmail.com>2019-04-25 01:38:42 -0400
commit0e27df3127c91a7d48ef05c7075c7d26aca2bd7f (patch)
tree3128764591135ab1d7f72a9820e749e2ba62b08f
parent575d8b339cdf74cdcb8d46dcd6e627aec2dda636 (diff)
fixed re-clicking inside text and resizing text with focus
-rw-r--r--src/client/util/SelectionManager.ts2
-rw-r--r--src/client/views/DocumentDecorations.tsx1
-rw-r--r--src/client/views/nodes/FormattedTextBox.scss3
3 files changed, 4 insertions, 2 deletions
diff --git a/src/client/util/SelectionManager.ts b/src/client/util/SelectionManager.ts
index 0e7b374e9..da66bf3fc 100644
--- a/src/client/util/SelectionManager.ts
+++ b/src/client/util/SelectionManager.ts
@@ -63,7 +63,7 @@ export namespace SelectionManager {
export function ReselectAll() {
let sdocs = manager.ReselectAll();
- manager.ReselectAll2(sdocs);
+ setTimeout(() => manager.ReselectAll2(sdocs), 0);
}
export function SelectedDocuments(): Array<DocumentView> {
return manager.SelectedDocuments;
diff --git a/src/client/views/DocumentDecorations.tsx b/src/client/views/DocumentDecorations.tsx
index 9995c1c3f..06d2f580c 100644
--- a/src/client/views/DocumentDecorations.tsx
+++ b/src/client/views/DocumentDecorations.tsx
@@ -437,6 +437,7 @@ export class DocumentDecorations extends React.Component<{}, { value: string }>
e.stopPropagation();
this._resizing = "";
this.Interacting = false;
+ SelectionManager.ReselectAll();
if (e.button === 0) {
e.preventDefault();
this._isPointerDown = false;
diff --git a/src/client/views/nodes/FormattedTextBox.scss b/src/client/views/nodes/FormattedTextBox.scss
index 59857bab3..5eb2bf7ce 100644
--- a/src/client/views/nodes/FormattedTextBox.scss
+++ b/src/client/views/nodes/FormattedTextBox.scss
@@ -22,10 +22,11 @@
overflow-x: hidden;
color: initial;
height: 100%;
- pointer-events: none;
+ pointer-events: all;
}
.formattedTextBox-cont-hidden {
overflow: hidden;
+ pointer-events: none;
}
.menuicon {