Skip to content

Commit

Permalink
fix: revert dragger name
Browse files Browse the repository at this point in the history
  • Loading branch information
BeksOmega committed Apr 10, 2024
1 parent ee95b4c commit 2b38a04
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/dragging/dragger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
2 changes: 1 addition & 1 deletion core/gesture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);
Expand Down
6 changes: 5 additions & 1 deletion core/registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,11 @@ export class Type<_T> {

static METRICS_MANAGER = new Type<IMetricsManager>('metricsManager');

static DRAGGER = new Type<IDragger>('dragger');
/**
* Type for an IDragger. Formerly behavior was mostly covered by
* BlockDraggeers, which is why the name is inaccurate.
*/
static BLOCK_DRAGGER = new Type<IDragger>('blockDragger');

/** @internal */
static SERIALIZER = new Type<ISerializer>('serializer');
Expand Down

0 comments on commit 2b38a04

Please sign in to comment.