@internal method to call actual drag event
(e: DragEvent)
| 184 | |
| 185 | /** @internal method to call actual drag event */ |
| 186 | public _callDrag(e: DragEvent): void { |
| 187 | if (!this.dragging) return; |
| 188 | const ev = Utils.initEvent<DragEvent>(e, { target: this.el, type: 'drag' }); |
| 189 | if (this.option.drag) { |
| 190 | this.option.drag(ev, this.ui()); |
| 191 | } |
| 192 | this.triggerEvent('drag', ev); |
| 193 | } |
| 194 | |
| 195 | /** @internal called when the main page (after successful mousedown) receives a move event to drag the item around the screen */ |
| 196 | protected _mouseMove(e: DragEvent): boolean { |
no test coverage detected