mirror of
https://github.com/google/blockly.git
synced 2026-01-09 10:00:09 +01:00
fix: revert dragger name (#8020)
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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,
|
||||
);
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user