aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2019-04-19 00:17:02 -0400
committerBob Zeleznik <zzzman@gmail.com>2019-04-19 00:17:02 -0400
commit5ce44593a1edb4de4254f8fc7e323ae1d9f9e896 (patch)
tree624e2d6653602a715e85e23776c38e6adf369352 /src/client/views/nodes
parentac9111d3c06685ef295f7e15481738132eb470f8 (diff)
alt key fixes
Diffstat (limited to 'src/client/views/nodes')
-rw-r--r--src/client/views/nodes/DocumentView.tsx8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx
index 3ada3252c..c62dbd59a 100644
--- a/src/client/views/nodes/DocumentView.tsx
+++ b/src/client/views/nodes/DocumentView.tsx
@@ -178,7 +178,7 @@ export class DocumentView extends React.Component<DocumentViewProps> {
if (Math.abs(this._downX - e.clientX) > 3 || Math.abs(this._downY - e.clientY) > 3) {
document.removeEventListener("pointermove", this.onPointerMove);
document.removeEventListener("pointerup", this.onPointerUp);
- if (!this.topMost || e.buttons === 2 || e.altKey) {
+ if (!e.altKey && (!this.topMost || e.buttons === 2)) {
this.startDragging(this._downX, this._downY, e.ctrlKey || e.altKey);
}
}
@@ -222,12 +222,8 @@ export class DocumentView extends React.Component<DocumentViewProps> {
}
@action
- public minimize = (where: number[]): void => {
+ public minimize = (): void => {
this.props.Document.SetBoolean(KeyStore.Minimized, true);
- if (where[0] !== 0 || where[1] !== 0)
- this.props.Document.SetNumber(KeyStore.MinimizedX, where[0]);
- if (where[1] !== 0 || where[0] !== 0)
- this.props.Document.SetNumber(KeyStore.MinimizedY, where[1]);
}
@undoBatch