aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-02-01 12:14:09 -0500
committerbob <bcz@cs.brown.edu>2019-02-01 12:14:09 -0500
commit30c8a29abae61a47d0b17b86727729f0e55f7f69 (patch)
treea6cab8a5cd6c24218f5f4796ccc6f48684d632e8
parentba9ef04e48d874124ce149c91bd49dcae394a82e (diff)
fixed full-screen dragging
-rw-r--r--src/DocumentDecorations.scss1
-rw-r--r--src/util/DragManager.ts1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/DocumentDecorations.scss b/src/DocumentDecorations.scss
index 252b0f53f..e8b93a18b 100644
--- a/src/DocumentDecorations.scss
+++ b/src/DocumentDecorations.scss
@@ -1,6 +1,7 @@
#documentDecorations-container {
position: absolute;
display: grid;
+ z-index: 1000;
grid-template-rows: 20px 1fr 20px;
grid-template-columns: 20px 1fr 20px;
pointer-events: none;
diff --git a/src/util/DragManager.ts b/src/util/DragManager.ts
index 5b7609819..b4132a222 100644
--- a/src/util/DragManager.ts
+++ b/src/util/DragManager.ts
@@ -82,6 +82,7 @@ export namespace DragManager {
dragElement.style.opacity = "0.7";
dragElement.style.position = "absolute";
dragElement.style.transformOrigin = "0 0";
+ dragElement.style.zIndex = "1000";
dragElement.style.transform = `translate(${x}px, ${y}px) scale(${scaleX}, ${scaleY})`;
dragDiv.appendChild(dragElement);
_lastPointerX = dragData["xOffset"] + rect.left;