1
後檢測鼠標鬆開我的jQuery UI draggable
元素上工作。拖動
當elementA
被拖動,我從elementB
去除類。
我想要檢測elementA
已停止拖動,並將類添加回elementB
。
$('.container').draggable({
// Output offset while dragging box
drag: function(){
$('.properties').removeClass('appear');
// Detect mouseup after dragging has stopped
// and add .appear back to .properties
}
});
真棒,感謝隊友:) – colmtuite