(ev)
| 1699 | ev.preventDefault(); |
| 1700 | } |
| 1701 | function onMove(ev) { |
| 1702 | if (!dragging) return; |
| 1703 | var dx = ev.clientX - startX; |
| 1704 | var dy = ev.clientY - startY; |
| 1705 | box.style.left = (boxRect.left + dx) + 'px'; |
| 1706 | box.style.top = (boxRect.top + dy) + 'px'; |
| 1707 | } |
| 1708 | function onUp() { dragging = false; } |
| 1709 | dragHandle.onmousedown = onDown; |
| 1710 | document.addEventListener('mousemove', onMove); |
nothing calls this directly
no outgoing calls
no test coverage detected