Add support for resizing workspace panels (#443)

* Resize panels

* Removing move_selection test pending #444 resolved

* Bind event listners and cursor to the document

* Fix flex grow on document being reset when drawing

* Call onresize when the boundry is dragged

* Add min panel size

* Add explicit function return types

* Dispatch resize event

* Lock pointer instead of setting cursor on document

Co-authored-by: otdavies <oliver@psyfer.io>
Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
0HyperCube
2022-01-08 08:02:02 -08:00
committed by Keavon Chambers
co-authored by otdavies Keavon Chambers
parent effc8354d1
commit 9afb9935c2
3 changed files with 56 additions and 5 deletions
+1 -1
View File
@@ -241,7 +241,7 @@ declare module "@vue/runtime-core" {
editor: EditorState;
// This must be set to optional because there is a time in the lifecycle of the component where inputManager is undefined.
// That's because we initialize inputManager in `mounted()` rather than `data()` since the div hasn't been created yet.
inputManger?: InputManager;
inputManager?: InputManager;
}
}