(e: React.MouseEvent)
| 12 | }; |
| 13 | |
| 14 | const handleMouseMove = (e: React.MouseEvent) => { |
| 15 | if (!isDragging) return; |
| 16 | |
| 17 | const container = e.currentTarget; |
| 18 | const rect = container.getBoundingClientRect(); |
| 19 | const x = e.clientX - rect.left; |
| 20 | const percentage = (x / rect.width) * 100; |
| 21 | |
| 22 | setSplitPosition(Math.min(Math.max(percentage, 20), 80)); |
| 23 | }; |
| 24 | |
| 25 | const handleMouseUp = () => { |
| 26 | setIsDragging(false); |
nothing calls this directly
no outgoing calls
no test coverage detected