(e)
| 71 | $dragHandle.onmousedown = onDragStart; |
| 72 | |
| 73 | function onDragStart(e) { |
| 74 | isDragging = true; |
| 75 | startY = e.touches ? e.touches[0].clientY : e.clientY; |
| 76 | currentY = startY; |
| 77 | $panel.style.transition = "none"; |
| 78 | |
| 79 | document.addEventListener("touchmove", onDragMove, { passive: false }); |
| 80 | document.addEventListener("mousemove", onDragMove); |
| 81 | document.addEventListener("touchend", onDragEnd); |
| 82 | document.addEventListener("mouseup", onDragEnd); |
| 83 | } |
| 84 | |
| 85 | function onDragMove(e) { |
| 86 | if (!isDragging) return; |
nothing calls this directly
no outgoing calls
no test coverage detected