mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-27 02:05:31 +03:00
speed up options window animation
This commit is contained in:
parent
3aa8d6aa71
commit
21065c8acb
1 changed files with 2 additions and 2 deletions
4
main.js
4
main.js
|
@ -160,7 +160,7 @@ $(document).ready(function () {
|
||||||
if (e.type == 'click' && !$.contains($('div#options-window')[0], e.target) || e.type == 'keyup' && e.keyCode == 27) {
|
if (e.type == 'click' && !$.contains($('div#options-window')[0], e.target) || e.type == 'keyup' && e.keyCode == 27) {
|
||||||
$(document).unbind('click keyup', close_and_cleanup);
|
$(document).unbind('click keyup', close_and_cleanup);
|
||||||
|
|
||||||
$('div#options-window').slideUp(function () {
|
$('div#options-window').slideUp(250, function () {
|
||||||
el.removeClass('active');
|
el.removeClass('active');
|
||||||
$(this).empty().remove();
|
$(this).empty().remove();
|
||||||
});
|
});
|
||||||
|
@ -169,7 +169,7 @@ $(document).ready(function () {
|
||||||
|
|
||||||
$(document).bind('click keyup', close_and_cleanup);
|
$(document).bind('click keyup', close_and_cleanup);
|
||||||
|
|
||||||
$(this).slideDown();
|
$(this).slideDown(250);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue