Pārlūkot izejas kodu

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

j8
paweldomas 9 gadus atpakaļ
vecāks
revīzija
8c426e8bb7
2 mainītis faili ar 10 papildinājumiem un 0 dzēšanām
  1. 9
    0
      modules/UI/UI.js
  2. 1
    0
      modules/UI/toolbars/ToolbarToggler.js

+ 9
- 0
modules/UI/UI.js Parādīt failu

@@ -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 Parādīt failu

@@ -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 {

Notiek ielāde…
Atcelt
Saglabāt