@internal updates the top/left position to follow the mouse
(e: DragEvent)
| 374 | |
| 375 | /** @internal updates the top/left position to follow the mouse */ |
| 376 | public _dragFollow(e: DragEvent): void { |
| 377 | const style = this.helper.style; |
| 378 | const offset = this.dragOffset; |
| 379 | if (this.option.rtl) { |
| 380 | style.right = ((window.innerWidth - e.clientX) + offset.offsetX) * this.dragTransform.xScale + 'px'; |
| 381 | if (style.left) |
| 382 | style.left = ''; |
| 383 | } else { |
| 384 | style.left = (e.clientX + offset.offsetX) * this.dragTransform.xScale + 'px'; |
| 385 | if (style.right) |
| 386 | style.right = ''; |
| 387 | } |
| 388 | style.top = (e.clientY + offset.offsetTop) * this.dragTransform.yScale + 'px'; |
| 389 | } |
| 390 | |
| 391 | /** @internal */ |
| 392 | protected _setupHelperContainmentStyle(): DDDraggable { |
no outgoing calls
no test coverage detected