blockly > BlockDragger > endDrag
BlockDragger.endDrag() 方法
完成块拖动,将块放回工作区中。
Signature:
endDrag(e: PointerEvent, currentDragDeltaXY: Coordinate): void;
参数
参数 | 类型 | 说明 |
---|---|---|
e | PointerEvent | Pointsup 事件。 |
currentDragDeltaXY | 坐标 | 指针从拖动开始时的位置移动的距离(以像素为单位)。 |
返回:
void