Fixes hiding toolbars.

Schedule new hide check if toolbar is hovered, overlay is shown or the sideBar container is visible (chat, contactlist , etc.).
This commit is contained in:
damencho 2016-09-14 11:51:47 -05:00
parent 0e94bf7e0b
commit 686e85cd4f
1 changed files with 4 additions and 2 deletions

View File

@ -35,9 +35,11 @@ function hideToolbar(force) {
clearTimeout(toolbarTimeoutObject);
toolbarTimeoutObject = null;
if (Toolbar.isHovered() || APP.UI.isRingOverlayVisible()) {
if (Toolbar.isHovered()
|| APP.UI.isRingOverlayVisible()
|| SideContainerToggler.isVisible()) {
toolbarTimeoutObject = setTimeout(hideToolbar, toolbarTimeout);
} else if (!SideContainerToggler.isVisible() || force) {
} else {
Toolbar.hide();
$('#subject').animate({top: "-=40"}, 300);
}