* Sets a handle as disabled. While a handle is disabled, it'll capture and interrupt dragging. * @param handle Handle element that should be disabled.
(handle: HTMLElement)
| 635 | * @param handle Handle element that should be disabled. |
| 636 | */ |
| 637 | disableHandle(handle: HTMLElement) { |
| 638 | if (!this._disabledHandles.has(handle) && this._handles.indexOf(handle) > -1) { |
| 639 | this._disabledHandles.add(handle); |
| 640 | toggleNativeDragInteractions(handle, true); |
| 641 | } |
| 642 | } |
| 643 | |
| 644 | /** |
| 645 | * Enables a handle, if it has been disabled. |
no test coverage detected