(e)
| 1112 | } |
| 1113 | |
| 1114 | function handleReplyDrop(e) { |
| 1115 | if (e.stopPropagation) { |
| 1116 | e.stopPropagation(); |
| 1117 | } |
| 1118 | |
| 1119 | const targetIndex = parseInt(this.dataset.index); |
| 1120 | if (replyDraggedIndex !== targetIndex) { |
| 1121 | reorderRepliesAfterDrag(replyDraggedIndex, targetIndex); |
| 1122 | } |
| 1123 | |
| 1124 | // 清理样式 |
| 1125 | document.querySelectorAll('.reply-item-drag-over').forEach(el => { |
| 1126 | el.classList.remove('reply-item-drag-over'); |
| 1127 | }); |
| 1128 | |
| 1129 | return false; |
| 1130 | } |
| 1131 | |
| 1132 | function handleReplyDragEnd() { |
| 1133 | this.classList.remove('reply-item-dragging'); |
nothing calls this directly
no test coverage detected