From 86de80fed15d80fbe3aae5ee820c0517fbe7065f Mon Sep 17 00:00:00 2001 From: bobzel Date: Thu, 14 Dec 2023 10:21:02 -0500 Subject: restored golden layout dragging. --- src/client/util/SnappingManager.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/client/util/SnappingManager.ts') diff --git a/src/client/util/SnappingManager.ts b/src/client/util/SnappingManager.ts index 48ec61f85..b8bd90983 100644 --- a/src/client/util/SnappingManager.ts +++ b/src/client/util/SnappingManager.ts @@ -1,5 +1,5 @@ import { observable, action, runInAction, reaction, makeObservable } from 'mobx'; -import { Doc } from '../../fields/Doc'; +import { Doc, Opt } from '../../fields/Doc'; export class SnappingManager { private static _manager: SnappingManager; @@ -33,9 +33,9 @@ export class SnappingManager { public static get IsDragging() { return this.Instance._isDragging; } // prettier-ignore public static get IsResizing() { return this.Instance._isResizing; } // prettier-ignore public static get CanEmbed() { return this.Instance._canEmbed; } // prettier-ignore - public static SetShiftKey = (down: boolean) => runInAction(() => (this.Instance._shiftKey = down)); - public static SetCtrlKey = (down: boolean) => runInAction(() => (this.Instance._ctrlKey = down)); - public static SetIsDragging = (dragging: boolean) => runInAction(() => (this.Instance._isDragging = dragging)); - public static SetIsResizing = (doc: Doc | undefined) => runInAction(() => (this.Instance._isResizing = doc)); - public static SetCanEmbed = (canEmbed: boolean) => runInAction(() => (this.Instance._canEmbed = canEmbed)); + public static SetShiftKey = (down: boolean) => runInAction(() => (this.Instance._shiftKey = down)); // prettier-ignore + public static SetCtrlKey = (down: boolean) => runInAction(() => (this.Instance._ctrlKey = down)); // prettier-ignore + public static SetIsDragging = (drag: boolean) => runInAction(() => (this.Instance._isDragging = drag)); // prettier-ignore + public static SetIsResizing = (doc: Opt) => runInAction(() => (this.Instance._isResizing = doc)); // prettier-ignore + public static SetCanEmbed = (embed:boolean) => runInAction(() => (this.Instance._canEmbed = embed)); // prettier-ignore } -- cgit v1.2.3-70-g09d2