aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/DragManager.ts
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-06-25 09:35:09 -0400
committerbob <bcz@cs.brown.edu>2019-06-25 09:35:09 -0400
commit45ded4da2592bc2a8201e1260dfb6a80485684c7 (patch)
tree47cd5a7e031ae9535f4926e74b10bd24266b78d9 /src/client/util/DragManager.ts
parent66acf0237f2e1fe74660e5c2a035757403f79f8b (diff)
converted isTopMost into renderDepth and capped renderDepth at 7. removed previous cycle detection.
Diffstat (limited to 'src/client/util/DragManager.ts')
-rw-r--r--src/client/util/DragManager.ts2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/client/util/DragManager.ts b/src/client/util/DragManager.ts
index 3143924fc..442187912 100644
--- a/src/client/util/DragManager.ts
+++ b/src/client/util/DragManager.ts
@@ -28,7 +28,6 @@ export function SetupDrag(_reference: React.RefObject<HTMLElement>, docFunc: ()
document.removeEventListener('pointerup', onRowUp);
};
let onItemDown = async (e: React.PointerEvent) => {
- // if (this.props.isSelected() || this.props.isTopMost) {
if (e.button === 0) {
e.stopPropagation();
if (e.shiftKey && CollectionDockingView.Instance) {
@@ -38,7 +37,6 @@ export function SetupDrag(_reference: React.RefObject<HTMLElement>, docFunc: ()
document.addEventListener("pointerup", onRowUp);
}
}
- //}
};
return onItemDown;
}