Ver código fonte

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

j8
paweldomas 9 anos atrás
pai
commit
8c426e8bb7
2 arquivos alterados com 10 adições e 0 exclusões
  1. 9
    0
      modules/UI/UI.js
  2. 1
    0
      modules/UI/toolbars/ToolbarToggler.js

+ 9
- 0
modules/UI/UI.js Ver arquivo

1448
         || GumPermissionsOverlay.isVisible();
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
  * Shows browser-specific overlay with guidance how to proceed with gUM prompt.
1461
  * Shows browser-specific overlay with guidance how to proceed with gUM prompt.
1453
  * @param {string} browser - name of browser for which to show the guidance
1462
  * @param {string} browser - name of browser for which to show the guidance

+ 1
- 0
modules/UI/toolbars/ToolbarToggler.js Ver arquivo

36
 
36
 
37
     if (force !== true &&
37
     if (force !== true &&
38
             (Toolbar.isHovered()
38
             (Toolbar.isHovered()
39
+                || APP.UI.isRingOverlayVisible()
39
                 || SideContainerToggler.isVisible())) {
40
                 || SideContainerToggler.isVisible())) {
40
         toolbarTimeoutObject = setTimeout(hideToolbar, toolbarTimeout);
41
         toolbarTimeoutObject = setTimeout(hideToolbar, toolbarTimeout);
41
     } else {
42
     } else {

Carregando…
Cancelar
Salvar