diff options
author | bob <bcz@cs.brown.edu> | 2019-04-05 13:03:21 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-04-05 13:03:21 -0400 |
commit | f873d620e9a3804d5a6783d7ea335b27d59b4612 (patch) | |
tree | 18c26ea4afa664d1f43111c0441075f0aa3733a9 /src/client/views/nodes/DocumentView.tsx | |
parent | 8667cfd95ffb5a78392a8bfb78e4600c5da2acaa (diff) |
fixed dragging misalignment
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r-- | src/client/views/nodes/DocumentView.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx index b9329f269..7514e782d 100644 --- a/src/client/views/nodes/DocumentView.tsx +++ b/src/client/views/nodes/DocumentView.tsx @@ -219,7 +219,7 @@ export class DocumentView extends React.Component<DocumentViewProps> { this.props.RemoveDocument(this.props.Document); } }; - DragManager.StartDocumentDrag([this._mainCont.current], dragData, { + DragManager.StartDocumentDrag([this._mainCont.current], dragData, x, y, { handlers: { dragComplete: action(() => { }) }, @@ -239,7 +239,7 @@ export class DocumentView extends React.Component<DocumentViewProps> { document.removeEventListener("pointermove", this.onPointerMove); document.removeEventListener("pointerup", this.onPointerUp); if (!this.topMost || e.buttons == 2 || e.altKey) { - this.startDragging(e.x, e.y, e.ctrlKey || e.altKey); + this.startDragging(this._downX, this._downY, e.ctrlKey || e.altKey); } } e.stopPropagation(); |