Skip to main content

Home > blockly > ConnectionChecker > doDragChecks

ConnectionChecker.doDragChecks() method

Check whether this connection can be made by dragging.

Signature:

doDragChecks(a: RenderedConnection, b: RenderedConnection, distance: number): boolean;

Parameters

ParameterTypeDescription
aRenderedConnectionConnection to compare (on the block that's being dragged).
bRenderedConnectionConnection to compare against.
distancenumberThe maximum allowable distance between connections.

Returns:

boolean

True if the connection is allowed during a drag.