mirror of
https://github.com/apankrat/nullboard.git
synced 2025-08-07 05:36:57 +02:00
fix 1px full-list jerk when dragging notes around
This commit is contained in:
@@ -1901,16 +1901,19 @@
|
|||||||
|
|
||||||
drag.in_swap = true;
|
drag.in_swap = true;
|
||||||
|
|
||||||
$have.animate({ height: 0 }, 'fast', function(){
|
|
||||||
$have.remove();
|
|
||||||
$want.css({ marginTop: 5 });
|
|
||||||
});
|
|
||||||
|
|
||||||
$want.css({ display: 'block', height: 0, marginTop: 0 });
|
$want.css({ display: 'block', height: 0, marginTop: 0 });
|
||||||
$want.animate({ height: h }, 'fast', function(){
|
|
||||||
$want.css({ opacity: '', height: '' });
|
$want.animate({ height: h }, {
|
||||||
drag.in_swap = false;
|
duration: 'fast',
|
||||||
drag.adjustDrag();
|
progress: function() {
|
||||||
|
$have.height( h - $(this).height() );
|
||||||
|
},
|
||||||
|
complete: function() {
|
||||||
|
$have.remove();
|
||||||
|
$want.css({ marginTop: 5, opacity: '', height: '' });
|
||||||
|
drag.in_swap = false;
|
||||||
|
drag.adjustDrag();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user