blockly > BlockDragger > startDrag
BlockDragger.startDrag() 方法
开始拖动方块。
Signature:
startDrag(currentDragDeltaXY: Coordinate, healStack: boolean): void;
参数
参数 | 类型 | 说明 |
---|---|---|
currentDragDeltaXY | 坐标 | 指针从鼠标按下时的位置移动了多远(以像素为单位)。 |
healStack | boolean | 断开连接后是否修复堆栈。 |
返回:
void