diff --git a/core/blockly.ts b/core/blockly.ts index 678193f65..d5bbb90b2 100644 --- a/core/blockly.ts +++ b/core/blockly.ts @@ -330,7 +330,6 @@ export const setParentContainer = common.setParentContainer; // Aliases to allow external code to access these values for legacy reasons. export const COLLAPSE_CHARS = internalConstants.COLLAPSE_CHARS; -export const DRAG_STACK = internalConstants.DRAG_STACK; export const OPPOSITE_TYPE = internalConstants.OPPOSITE_TYPE; export const RENAME_VARIABLE_ID = internalConstants.RENAME_VARIABLE_ID; export const DELETE_VARIABLE_ID = internalConstants.DELETE_VARIABLE_ID; diff --git a/core/gesture.ts b/core/gesture.ts index 52281e6b9..5ff5b6fa0 100644 --- a/core/gesture.ts +++ b/core/gesture.ts @@ -26,7 +26,6 @@ import type {Field} from './field.js'; import type {IBlockDragger} from './interfaces/i_block_dragger.js'; import type {IBubble} from './interfaces/i_bubble.js'; import type {IFlyout} from './interfaces/i_flyout.js'; -import * as internalConstants from './internal_constants.js'; import * as Tooltip from './tooltip.js'; import * as Touch from './touch.js'; import {Coordinate} from './utils/coordinate.js'; @@ -142,7 +141,6 @@ export class Gesture { /** Boolean used internally to break a cycle in disposal. */ protected isEnding_ = false; - private healStack: boolean; /** The event that most recently updated this gesture. */ private mostRecentEvent: PointerEvent; @@ -191,12 +189,6 @@ export class Gesture { * (0, 0) is at this.mouseDownXY_. */ this.currentDragDeltaXY = new Coordinate(0, 0); - - /** - * Boolean used to indicate whether or not to heal the stack after - * disconnecting a block. - */ - this.healStack = !internalConstants.DRAG_STACK; } /** @@ -431,7 +423,6 @@ export class Gesture { } this.mouseDownXY = new Coordinate(e.clientX, e.clientY); - this.healStack = e.altKey || e.ctrlKey || e.metaKey; this.bindMouseEvents(e); diff --git a/core/internal_constants.ts b/core/internal_constants.ts index 2dd72c82f..27c945dc0 100644 --- a/core/internal_constants.ts +++ b/core/internal_constants.ts @@ -15,14 +15,6 @@ import {ConnectionType} from './connection_type.js'; */ export const COLLAPSE_CHARS = 30; -/** - * When dragging a block out of a stack, split the stack in two (true), or drag - * out the block healing the stack (false). - * - * @internal - */ -export const DRAG_STACK = true; - /** * Lookup table for determining the opposite type of a connection. *