mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Fixed resize-function triggering too often
This commit is contained in:
@@ -40,13 +40,13 @@ function resizeFunction() {
|
||||
if(chan && !Helper.mobilecheck()){
|
||||
if(document.querySelector("#wrapper") == null) return;
|
||||
if(!client && !embed) document.querySelector("#hide-playlist").style.left = (document.querySelector("#video-container").offsetWidth - document.querySelector("#hide-playlist").offsetWidth) + "px";
|
||||
if(((window.innerWidth > 600 && !embed) || (window.innerWidth > 500 && !embed)) && document.querySelector("#wrapper").style.height != "") {
|
||||
if(((window.innerWidth > 600 && !embed) || (window.innerWidth > 500 && embed)) && document.querySelector("#wrapper").style.height != "") {
|
||||
document.querySelector("#wrapper").style.height = "";
|
||||
document.querySelector("#chat-bar").style.height = "";
|
||||
document.querySelector("#channelchat").style.height = "";
|
||||
document.querySelector("#all_chat").style.height = "";
|
||||
document.querySelector("#chat-container").style.height = "";
|
||||
} else if(((window.innerWidth < 601 && !embed) || (window.innerWidth < 501 && !embed))) {
|
||||
} else if(((window.innerWidth < 601 && !embed) || (window.innerWidth < 501 && embed))) {
|
||||
if(!client && !embed) {
|
||||
var scPlaying = false;
|
||||
var ytPlaying = false;
|
||||
@@ -57,6 +57,7 @@ function resizeFunction() {
|
||||
} catch(e) {}
|
||||
scPlaying = !paused;
|
||||
resizePlaylistPlaying(ytPlaying || scPlaying);
|
||||
return;
|
||||
})
|
||||
} else {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user