Fix mouseup event handling when dragging a list record (#1490359)

This fixes drag-n-drop on managesieve filters list.
pull/280/head
Aleksander Machniak 9 years ago
parent 0f797eddd8
commit 35a32df940

@ -152,7 +152,12 @@ init_row: function(row)
// set eventhandlers to table row (only left-button-clicks in mouseup)
$(row).mousedown(function(e) { return self.drag_row(e, this.uid); })
.mouseup(function(e) { if (e.which == 1) return self.click_row(e, this.uid); });
.mouseup(function(e) {
if (e.which == 1 && !self.drag_active)
return self.click_row(e, this.uid);
else
return true;
});
if (bw.touch && row.addEventListener) {
row.addEventListener('touchstart', function(e) {

Loading…
Cancel
Save