Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Fixes the check whether we are hovering over the toolbar.

damencho2c39514359db
diff --git a/modules/UI/toolbars/Toolbar.js b/modules/UI/toolbars/Toolbar.js
index e25641089d..d0f27ae55b 100644
--- a/modules/UI/toolbars/Toolbar.js
+++ b/modules/UI/toolbars/Toolbar.js
@@ -428,15 +428,21 @@ const Toolbar = {
/**
* Indicates if the toolbar is currently hovered.
- * @return {true} if the toolbar is currently hovered, {false} otherwise
+ * @return {boolean} true if the toolbar is currently hovered,
+ * false otherwise
*/
isHovered() {
+ var hovered = false;
this.toolbarSelector.find('*').each(function () {
let id = $(this).attr('id');
if ($(`#${id}:hover`).length > 0) {
- return true;
+ hovered = true;
+ // break each
+ return false;
}
});
+ if (hovered)
+ return true;
if ($("#bottomToolbar:hover").length > 0) {
return true;
}