1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-09-16 18:06:55 +00:00

3.5.323. Refactor Debug. Use channel cover height in mini-player calculation.

This commit is contained in:
SirStendec 2016-10-12 11:11:06 -04:00
parent d098e402b4
commit 1a52caab6b
5 changed files with 391 additions and 267 deletions

View file

@ -590,7 +590,7 @@ FFZ.prototype.modify_channel_redesign = function(view) {
handleScroll: function(top) {
this._super();
var height = Layout.get('playerSize.1');
var height = this.get('channelCoverHeight') + Layout.get('playerSize.1');
document.body.classList.toggle('ffz-small-player', f.settings.small_player && top >= (height * .8));
},