diff options
author | bob <bcz@cs.brown.edu> | 2019-04-25 11:55:59 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-04-25 11:55:59 -0400 |
commit | 430dfa3afbfd38fe0db869b962da45903b888264 (patch) | |
tree | 298b0d76135b041a1b4709e1cc6dc26f24cdc4ec /src/client/views/nodes/DocumentView.tsx | |
parent | 6a62e0a16abc3bbadfb179750463e3d361f1c759 (diff) |
more event fixing. got rid of text box padding.
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r-- | src/client/views/nodes/DocumentView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx index cec6e6468..aaedd5b1c 100644 --- a/src/client/views/nodes/DocumentView.tsx +++ b/src/client/views/nodes/DocumentView.tsx @@ -179,7 +179,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 (!e.altKey && (!this.topMost || e.buttons === 2)) { + if (!e.altKey && !this.topMost && (!CollectionFreeFormView.RIGHT_BTN_DRAG && e.buttons === 1) || (CollectionFreeFormView.RIGHT_BTN_DRAG && e.buttons === 2)) { this.startDragging(this._downX, this._downY, e.ctrlKey || e.altKey); } } |