| | |
| | | |
| | | handleMouseMove(movement) { |
| | | if (!this.isDrawing) return |
| | | const tipText = this.getTipText() |
| | | if (!this.tooltip?.isVisible) { |
| | | this.tooltip.show(tipText, movement.endPosition) |
| | | } else { |
| | | this.tooltip.show(tipText) |
| | | this.tooltip.move(movement.endPosition) |
| | | } |
| | | if (this.positions.length === 0) return |
| | | const position = this.getPositionFromScreen(movement.endPosition) |
| | | if (!position) return |
| | | this.lastMousePosition = position |
| | | this.floatPosition = position |
| | | this.tooltip.show(this.getTipText(), movement.endPosition) |
| | | } |
| | | |
| | | getTipText() { |