[mirotalksfu] - add handleDropdownHover
هذا الالتزام موجود في:
@@ -64,7 +64,7 @@ dev dependencies: {
|
|||||||
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
|
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
|
||||||
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
|
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
|
||||||
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
||||||
* @version 1.9.93
|
* @version 1.9.94
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
4
package-lock.json
مولّد
4
package-lock.json
مولّد
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "mirotalksfu",
|
"name": "mirotalksfu",
|
||||||
"version": "1.9.93",
|
"version": "1.9.94",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "mirotalksfu",
|
"name": "mirotalksfu",
|
||||||
"version": "1.9.93",
|
"version": "1.9.94",
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@aws-sdk/client-s3": "^3.922.0",
|
"@aws-sdk/client-s3": "^3.922.0",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "mirotalksfu",
|
"name": "mirotalksfu",
|
||||||
"version": "1.9.93",
|
"version": "1.9.94",
|
||||||
"description": "WebRTC SFU browser-based video calls",
|
"description": "WebRTC SFU browser-based video calls",
|
||||||
"main": "Server.js",
|
"main": "Server.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ let BRAND = {
|
|||||||
},
|
},
|
||||||
about: {
|
about: {
|
||||||
imageUrl: '../images/mirotalk-logo.gif',
|
imageUrl: '../images/mirotalk-logo.gif',
|
||||||
title: '<strong>WebRTC SFU v1.9.93</strong>',
|
title: '<strong>WebRTC SFU v1.9.94</strong>',
|
||||||
html: `
|
html: `
|
||||||
<button
|
<button
|
||||||
id="support-button"
|
id="support-button"
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ if (location.href.substr(0, 5) !== 'https') location.href = 'https' + location.h
|
|||||||
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
|
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
|
||||||
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
|
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
|
||||||
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
||||||
* @version 1.9.93
|
* @version 1.9.94
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -1738,6 +1738,7 @@ function roomIsReady() {
|
|||||||
loadSettingsFromLocalStorage();
|
loadSettingsFromLocalStorage();
|
||||||
startSessionTimer();
|
startSessionTimer();
|
||||||
handleButtonsBar();
|
handleButtonsBar();
|
||||||
|
handleDropdownHover();
|
||||||
checkButtonsBar();
|
checkButtonsBar();
|
||||||
if (room_password) {
|
if (room_password) {
|
||||||
lockRoomButton.click();
|
lockRoomButton.click();
|
||||||
@@ -3904,6 +3905,45 @@ function handleButtonsBar() {
|
|||||||
: document.body.addEventListener('touchstart', showButtonsHandler);
|
: document.body.addEventListener('touchstart', showButtonsHandler);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function handleDropdownHover() {
|
||||||
|
const supportsHover = window.matchMedia('(hover: hover) and (pointer: fine)').matches;
|
||||||
|
if (!supportsHover) return;
|
||||||
|
|
||||||
|
const dropdowns = document.querySelectorAll('.dropdown');
|
||||||
|
|
||||||
|
dropdowns.forEach(dropdown => {
|
||||||
|
const toggle = dropdown.querySelector('.dropdown-toggle');
|
||||||
|
const menu = dropdown.querySelector('.dropdown-menu');
|
||||||
|
|
||||||
|
if (!toggle || !menu) return;
|
||||||
|
|
||||||
|
let timeoutId;
|
||||||
|
|
||||||
|
dropdown.addEventListener('mouseenter', () => {
|
||||||
|
clearTimeout(timeoutId);
|
||||||
|
const bsDropdown = new bootstrap.Dropdown(toggle);
|
||||||
|
bsDropdown.show();
|
||||||
|
});
|
||||||
|
|
||||||
|
dropdown.addEventListener('mouseleave', () => {
|
||||||
|
timeoutId = setTimeout(() => {
|
||||||
|
const bsDropdown = bootstrap.Dropdown.getInstance(toggle);
|
||||||
|
if (bsDropdown) {
|
||||||
|
bsDropdown.hide();
|
||||||
|
}
|
||||||
|
}, 200);
|
||||||
|
});
|
||||||
|
|
||||||
|
menu.addEventListener('mouseenter', () => {
|
||||||
|
clearTimeout(timeoutId);
|
||||||
|
});
|
||||||
|
|
||||||
|
toggle.addEventListener('click', (e) => {
|
||||||
|
e.stopPropagation();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
function showButtons() {
|
function showButtons() {
|
||||||
if (
|
if (
|
||||||
isButtonsBarOver ||
|
isButtonsBarOver ||
|
||||||
@@ -5722,7 +5762,7 @@ function showAbout() {
|
|||||||
position: 'center',
|
position: 'center',
|
||||||
imageUrl: BRAND.about?.imageUrl && BRAND.about.imageUrl.trim() !== '' ? BRAND.about.imageUrl : image.about,
|
imageUrl: BRAND.about?.imageUrl && BRAND.about.imageUrl.trim() !== '' ? BRAND.about.imageUrl : image.about,
|
||||||
customClass: { image: 'img-about' },
|
customClass: { image: 'img-about' },
|
||||||
title: BRAND.about?.title && BRAND.about.title.trim() !== '' ? BRAND.about.title : 'WebRTC SFU v1.9.93',
|
title: BRAND.about?.title && BRAND.about.title.trim() !== '' ? BRAND.about.title : 'WebRTC SFU v1.9.94',
|
||||||
html: `
|
html: `
|
||||||
<br />
|
<br />
|
||||||
<div id="about">
|
<div id="about">
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
|
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
|
||||||
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
|
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
|
||||||
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
||||||
* @version 1.9.93
|
* @version 1.9.94
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم