aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/PreviewCursor.tsx
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2019-04-23 21:24:57 -0400
committerBob Zeleznik <zzzman@gmail.com>2019-04-23 21:24:57 -0400
commit86fb73ccadd12ac07fea7a162295b287d6651c48 (patch)
tree4fc5ee159d83a73a642e6efb7a20688790a17087 /src/client/views/PreviewCursor.tsx
parentd3a0ed3292a3ca83f83d6f75e50bde494b2e1d47 (diff)
fixes for text box input and dock view problems.
Diffstat (limited to 'src/client/views/PreviewCursor.tsx')
-rw-r--r--src/client/views/PreviewCursor.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/views/PreviewCursor.tsx b/src/client/views/PreviewCursor.tsx
index ff8434681..5ece034fb 100644
--- a/src/client/views/PreviewCursor.tsx
+++ b/src/client/views/PreviewCursor.tsx
@@ -18,6 +18,8 @@ export class PreviewCursor extends React.Component<{}> {
@observable public static hide = () => { };
@action
public static Show(hide: any, x: number, y: number) {
+ if (this.hide)
+ this.hide();
this.clickPoint = [x, y];
this.hide = hide;
setTimeout(action(() => this.Visible = true), (1));