diff options
| author | bobzel <zzzman@gmail.com> | 2022-04-05 13:54:26 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2022-04-05 13:54:26 -0400 |
| commit | 51d7ce5f71465f2f578a08a998b2df353242ff4d (patch) | |
| tree | bcbcc7d6c9c0319fea0b70b93ba5070307e16d3c /src/client/views/DocumentDecorations.tsx | |
| parent | ab7948689e384af8779e581708df6fa4225a85a3 (diff) | |
fixes to allow dragging golden layout windows to be aborted with 'esc'. some code cleanup as well to avoid rebuilding golden layout when tabs are closed. Fixes for undo and goldenlayout
Diffstat (limited to 'src/client/views/DocumentDecorations.tsx')
| -rw-r--r-- | src/client/views/DocumentDecorations.tsx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/client/views/DocumentDecorations.tsx b/src/client/views/DocumentDecorations.tsx index 8cd646935..d7ead713a 100644 --- a/src/client/views/DocumentDecorations.tsx +++ b/src/client/views/DocumentDecorations.tsx @@ -151,12 +151,7 @@ export class DocumentDecorations extends React.Component<{ PanelWidth: number, P } onMaximizeDown = (e: React.PointerEvent) => { setupMoveUpEvents(this, e, () => { - DragManager.StartWindowDrag?.({ - pageX: e.pageX, - pageY: e.pageY, - preventDefault: emptyFunction, - button: 0 - }, [SelectionManager.Views().slice(-1)[0].rootDoc]); + DragManager.StartWindowDrag?.(e, [SelectionManager.Views().slice(-1)[0].rootDoc]); return true; }, emptyFunction, this.onMaximizeClick, false, false); } |
