[mirotalksfu] - improve chat pin/unpin
هذا الالتزام موجود في:
@@ -2798,6 +2798,16 @@ class RoomClient {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
makeUnDraggable(elmnt, dragObj) {
|
||||||
|
if (dragObj) {
|
||||||
|
dragObj.onmousedown = null;
|
||||||
|
} else {
|
||||||
|
elmnt.onmousedown = null;
|
||||||
|
}
|
||||||
|
elmnt.style.top = '';
|
||||||
|
elmnt.style.left = '';
|
||||||
|
}
|
||||||
|
|
||||||
// ####################################################
|
// ####################################################
|
||||||
// CHAT
|
// CHAT
|
||||||
// ####################################################
|
// ####################################################
|
||||||
@@ -2865,6 +2875,8 @@ class RoomClient {
|
|||||||
this.isChatPinned = true;
|
this.isChatPinned = true;
|
||||||
setColor(chatTogglePin, 'lime');
|
setColor(chatTogglePin, 'lime');
|
||||||
resizeVideoMedia();
|
resizeVideoMedia();
|
||||||
|
chatRoom.style.resize = 'none';
|
||||||
|
if (!this.isMobileDevice) this.makeUnDraggable(chatRoom, chatHeader);
|
||||||
}
|
}
|
||||||
|
|
||||||
chatUnpin() {
|
chatUnpin() {
|
||||||
@@ -2882,6 +2894,8 @@ class RoomClient {
|
|||||||
this.isChatPinned = false;
|
this.isChatPinned = false;
|
||||||
setColor(chatTogglePin, 'white');
|
setColor(chatTogglePin, 'white');
|
||||||
resizeVideoMedia();
|
resizeVideoMedia();
|
||||||
|
chatRoom.style.resize = 'both';
|
||||||
|
if (!this.isMobileDevice) this.makeDraggable(chatRoom, chatHeader);
|
||||||
}
|
}
|
||||||
|
|
||||||
chatCenter() {
|
chatCenter() {
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم