@internal
(e: MouseEvent)
| 114 | |
| 115 | /** @internal */ |
| 116 | protected _mouseUp(e: MouseEvent): void { |
| 117 | if (this.moving) { |
| 118 | this._triggerEvent('stop', e); |
| 119 | document.removeEventListener('keydown', this._keyEvent); |
| 120 | } |
| 121 | document.removeEventListener('mousemove', this._mouseMove, true); |
| 122 | document.removeEventListener('mouseup', this._mouseUp, true); |
| 123 | if (isTouch) { |
| 124 | this.el.removeEventListener('touchmove', touchmove); |
| 125 | this.el.removeEventListener('touchend', touchend); |
| 126 | } |
| 127 | delete this.moving; |
| 128 | delete this.mouseDownEvent; |
| 129 | e.stopPropagation(); |
| 130 | e.preventDefault(); |
| 131 | } |
| 132 | |
| 133 | /** @internal call when keys are being pressed - use Esc to cancel */ |
| 134 | protected _keyEvent(e: KeyboardEvent): void { |
no test coverage detected