我得到了以下設置爲功能的DragDrop:jQuery UI拖動 - 正在使用哪個處理程序?
const listDragOptions = {
handle: ".camera, .texter", // dragged by either camera or edit icon
//revert: true, // so dragged elements fall back to their original position,
revertDuration: 200, // the element goes back instantly, no need for effects on this one
snap: true, // snap to table cell edges
helper: "clone", // create a cloned element instead of moving the original one
drag: function(event, ui) {
// tell me which handle is being used!
}
}
基本上我需要知道哪兩個手柄「.camera,.texter」用戶點擊來實現ddragging功能。 這似乎很棘手。我在API中找不到任何東西,所以我非常願意接受任何骯髒的黑客攻擊。
感謝您的所有答案!