diff --git a/core/dragging/dragger.ts b/core/dragging/dragger.ts index 259029fb9..25266799e 100644 --- a/core/dragging/dragger.ts +++ b/core/dragging/dragger.ts @@ -139,4 +139,4 @@ export class Dragger implements IDragger { } } -registry.register(registry.Type.DRAGGER, registry.DEFAULT, Dragger); +registry.register(registry.Type.BLOCK_DRAGGER, registry.DEFAULT, Dragger); diff --git a/core/gesture.ts b/core/gesture.ts index 2a51351db..1109ecfce 100644 --- a/core/gesture.ts +++ b/core/gesture.ts @@ -360,7 +360,7 @@ export class Gesture { workspace: WorkspaceSvg, ): IDragger { const DraggerClass = registry.getClassFromOptions( - registry.Type.DRAGGER, + registry.Type.BLOCK_DRAGGER, this.creatorWorkspace.options, true, ); diff --git a/core/registry.ts b/core/registry.ts index 643b0fe48..d46c36f48 100644 --- a/core/registry.ts +++ b/core/registry.ts @@ -95,7 +95,11 @@ export class Type<_T> { static METRICS_MANAGER = new Type('metricsManager'); - static DRAGGER = new Type('dragger'); + /** + * Type for an IDragger. Formerly behavior was mostly covered by + * BlockDraggeers, which is why the name is inaccurate. + */ + static BLOCK_DRAGGER = new Type('blockDragger'); /** @internal */ static SERIALIZER = new Type('serializer');