mirror of
https://github.com/google/blockly.git
synced 2026-01-07 00:50:27 +01:00
chore: delete useless DRAG_STACK value (#7994)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user