diff options
| author | bobzel <zzzman@gmail.com> | 2022-08-19 09:21:28 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2022-08-19 09:21:28 -0400 |
| commit | 53dc1ae6077774a7235f2fe7f56ffa03f8a9aa5a (patch) | |
| tree | 7d71c948cba1a734489e75329d3a5ec266a328e3 /src/client/views/nodes/trails | |
| parent | 5655589d46c01af74c959c2d365d3eeb15feb407 (diff) | |
fixed undo bug in dragManager where batches weren't being closed. fixed schemaheader copy method to copy all parameters. fixed notetaking columnresizer to create an UndoBatch. fixed notetakingview's columnHeaders to return the actual headers list, not a copy. fixed document decorations to not modify docsBeingDragged
Diffstat (limited to 'src/client/views/nodes/trails')
| -rw-r--r-- | src/client/views/nodes/trails/PresElementBox.tsx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/client/views/nodes/trails/PresElementBox.tsx b/src/client/views/nodes/trails/PresElementBox.tsx index 0cf15d297..c578f8bcf 100644 --- a/src/client/views/nodes/trails/PresElementBox.tsx +++ b/src/client/views/nodes/trails/PresElementBox.tsx @@ -250,10 +250,7 @@ export class PresElementBox extends ViewBoxBaseComponent<FieldViewProps>() { onPointerMove = (e: PointerEvent) => { const slide = this._itemRef.current!; - let dragIsPresItem: boolean = DragManager.docsBeingDragged.length > 0 ? true : false; - for (const doc of DragManager.docsBeingDragged) { - if (!doc.presentationTargetDoc) dragIsPresItem = false; - } + const dragIsPresItem = DragManager.docsBeingDragged.some(d => d.presentationTargetDoc); if (slide && dragIsPresItem) { const rect = slide.getBoundingClientRect(); const y = e.clientY - rect.top; //y position within the element. |
