我得到了以下设置为功能的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中找不到任何东西,所以我非常愿意接受任何肮脏的黑客攻击。
感谢您的所有答案!