Procházet zdrojové kódy

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

master
paweldomas před 9 roky
rodič
revize
8c426e8bb7
2 změnil soubory, kde provedl 10 přidání a 0 odebrání
  1. 9
    0
      modules/UI/UI.js
  2. 1
    0
      modules/UI/toolbars/ToolbarToggler.js

+ 9
- 0
modules/UI/UI.js Zobrazit soubor

@@ -1448,6 +1448,15 @@ UI.isOverlayVisible = function () {
1448 1448
         || GumPermissionsOverlay.isVisible();
1449 1449
 };
1450 1450
 
1451
+/**
1452
+ * Indicates if the ring overlay is currently visible.
1453
+ *
1454
+ * @returns {*|boolean} {true} if the ring overlay is visible, {false} otherwise
1455
+ */
1456
+UI.isRingOverlayVisible = function () {
1457
+    return RingOverlay.isVisible();
1458
+};
1459
+
1451 1460
 /**
1452 1461
  * Shows browser-specific overlay with guidance how to proceed with gUM prompt.
1453 1462
  * @param {string} browser - name of browser for which to show the guidance

+ 1
- 0
modules/UI/toolbars/ToolbarToggler.js Zobrazit soubor

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

Načítá se…
Zrušit
Uložit