* Gets the distance that the user has dragged during the current drag sequence. * @param currentPosition Current position of the user's pointer.
(currentPosition: Point)
| 1424 | * @param currentPosition Current position of the user's pointer. |
| 1425 | */ |
| 1426 | private _getDragDistance(currentPosition: Point): Point { |
| 1427 | const pickupPosition = this._pickupPositionOnPage; |
| 1428 | |
| 1429 | if (pickupPosition) { |
| 1430 | return {x: currentPosition.x - pickupPosition.x, y: currentPosition.y - pickupPosition.y}; |
| 1431 | } |
| 1432 | |
| 1433 | return {x: 0, y: 0}; |
| 1434 | } |
| 1435 | |
| 1436 | /** Cleans up any cached element dimensions that we don't need after dragging has stopped. */ |
| 1437 | private _cleanupCachedDimensions() { |
no outgoing calls
no test coverage detected