aboutsummaryrefslogtreecommitdiff
path: root/src/views
diff options
context:
space:
mode:
Diffstat (limited to 'src/views')
-rw-r--r--src/views/freeformcanvas/FreeFormCanvas.tsx2
-rw-r--r--src/views/nodes/DocumentView.tsx2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/views/freeformcanvas/FreeFormCanvas.tsx b/src/views/freeformcanvas/FreeFormCanvas.tsx
index e051fd97c..13e923736 100644
--- a/src/views/freeformcanvas/FreeFormCanvas.tsx
+++ b/src/views/freeformcanvas/FreeFormCanvas.tsx
@@ -77,7 +77,7 @@ export class FreeFormCanvas extends React.Component<IProps> {
let store = this.props.store;
return (
<div className="freeformcanvas-container" onPointerDown={this.onPointerDown} onWheel={this.onPointerWheel} onContextMenu={(e) => e.preventDefault()}>
- <div className="freeformcanvas" style={{ transform: store.Transform, transformOrigin: '50% 50%' }}>
+ <div className="freeformcanvas" style={{ transform: store.Transform}}>
<div className="node-container">
{this.props.store.Docs.map(doc => {
return (<DocumentView key={doc.Id} dvm={doc} />);
diff --git a/src/views/nodes/DocumentView.tsx b/src/views/nodes/DocumentView.tsx
index 648ea7f50..772c272bd 100644
--- a/src/views/nodes/DocumentView.tsx
+++ b/src/views/nodes/DocumentView.tsx
@@ -130,7 +130,6 @@ export class DocumentView extends React.Component<IProps> {
private _isPointerDown = false;
componentDidMount() {
- return;
// if(this._mainCont.current) {
// DragManager.MakeDraggable(this._mainCont.current, {
// buttons: 2,
@@ -143,6 +142,7 @@ export class DocumentView extends React.Component<IProps> {
}
onPointerDown = (e: React.PointerEvent): void => {
+ // return;
e.stopPropagation();
if (e.button === 2) {
this._isPointerDown = true;