fix(ToolbarToggle): restore call overlay to the timeout check

This commit is contained in:
paweldomas 2016-10-21 10:27:10 -05:00
parent 5bc727804f
commit 8c426e8bb7
2 changed files with 10 additions and 0 deletions

View File

@ -1448,6 +1448,15 @@ UI.isOverlayVisible = function () {
|| GumPermissionsOverlay.isVisible();
};
/**
* Indicates if the ring overlay is currently visible.
*
* @returns {*|boolean} {true} if the ring overlay is visible, {false} otherwise
*/
UI.isRingOverlayVisible = function () {
return RingOverlay.isVisible();
};
/**
* Shows browser-specific overlay with guidance how to proceed with gUM prompt.
* @param {string} browser - name of browser for which to show the guidance

View File

@ -36,6 +36,7 @@ function hideToolbar(force) { // eslint-disable-line no-unused-vars
if (force !== true &&
(Toolbar.isHovered()
|| APP.UI.isRingOverlayVisible()
|| SideContainerToggler.isVisible())) {
toolbarTimeoutObject = setTimeout(hideToolbar, toolbarTimeout);
} else {