|
15 | 15 | * @license For commercial use or closed source, contact us at license.mirotalk@gmail.com or purchase directly from CodeCanyon |
16 | 16 | * @license CodeCanyon: https://codecanyon.net/item/mirotalk-p2p-webrtc-realtime-video-conferences/38376661 |
17 | 17 | * @author Miroslav Pejic - miroslav.pejic.85@gmail.com |
18 | | - * @version 1.8.21 |
| 18 | + * @version 1.8.22 |
19 | 19 | * |
20 | 20 | */ |
21 | 21 |
|
@@ -6464,24 +6464,36 @@ function setChatRoomBtn() { |
6464 | 6464 | function setParticipantsBtn() { |
6465 | 6465 | participantsBtn.addEventListener('click', async (e) => { |
6466 | 6466 | e.preventDefault(); |
6467 | | - if (!isChatRoomVisible) { |
6468 | | - showChatRoomDraggable(); |
6469 | | - } |
6470 | 6467 |
|
6471 | 6468 | if (!isMobileDevice && canBePinned()) { |
6472 | 6469 | if (isCaptionPinned) { |
6473 | 6470 | userLog('toast', 'Please unpin the Caption that appears to be currently pinned'); |
6474 | 6471 | return; |
6475 | 6472 | } |
6476 | 6473 |
|
| 6474 | + msgerDraggable.classList.add('msger-pinned-sidebar-open'); |
| 6475 | + |
| 6476 | + if (!isChatRoomVisible) { |
| 6477 | + showChatRoomDraggable(); |
| 6478 | + } |
| 6479 | + |
6477 | 6480 | if (!isChatPinned) { |
6478 | 6481 | chatPin(); |
6479 | 6482 | } |
6480 | 6483 |
|
6481 | | - openPinnedParticipantsSidebar(true); |
| 6484 | + // Wait for the panel-slide-in animation to play before overlaying the participants sidebar. |
| 6485 | + await sleep(500); |
| 6486 | + |
| 6487 | + msgerCPBtn.classList.add('active'); |
| 6488 | + searchPeerBarName?.focus(); |
| 6489 | + screenReaderAccessibility.announceMessage('Participants list opened'); |
6482 | 6490 | return; |
6483 | 6491 | } |
6484 | 6492 |
|
| 6493 | + if (!isChatRoomVisible) { |
| 6494 | + showChatRoomDraggable(); |
| 6495 | + } |
| 6496 | + |
6485 | 6497 | syncParticipantsPanelVisibility(true); |
6486 | 6498 | searchPeerBarName?.focus(); |
6487 | 6499 | screenReaderAccessibility.announceMessage('Participants list opened'); |
@@ -15568,7 +15580,7 @@ function showAbout() { |
15568 | 15580 | Swal.fire({ |
15569 | 15581 | background: swBg, |
15570 | 15582 | position: 'center', |
15571 | | - title: brand.about?.title && brand.about.title.trim() !== '' ? brand.about.title : 'WebRTC P2P v1.8.21', |
| 15583 | + title: brand.about?.title && brand.about.title.trim() !== '' ? brand.about.title : 'WebRTC P2P v1.8.22', |
15572 | 15584 | imageUrl: brand.about?.imageUrl && brand.about.imageUrl.trim() !== '' ? brand.about.imageUrl : images.about, |
15573 | 15585 | customClass: { image: 'img-about' }, |
15574 | 15586 | html: ` |
|
0 commit comments