mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-03 08:28:31 +00:00
4.20.47
* Changed: More fixes to hopefully fix player sizing issues on certain browsers in combination with certain settings. * Changed: Send automatic error reports to our new server. * Removed: Option to disable Twitch player speedup. Currently broken with no signs of Twitch fixing the player internals to make it work again.
This commit is contained in:
parent
93908471bb
commit
b7a2ce3fcf
5 changed files with 30 additions and 13 deletions
|
@ -203,6 +203,13 @@ export default class Layout extends Module {
|
|||
this.updateCardClass(inst);
|
||||
});
|
||||
|
||||
this.ResizeDetector.ready(() => {
|
||||
if ( this._needs_resize ) {
|
||||
this._needs_resize = false;
|
||||
this.handleResize();
|
||||
}
|
||||
});
|
||||
|
||||
this.SideBarChannels.ready((cls, instances) => {
|
||||
for(const inst of instances)
|
||||
this.updateCardClass(inst);
|
||||
|
@ -261,16 +268,19 @@ export default class Layout extends Module {
|
|||
if ( this._resize_timer )
|
||||
return;
|
||||
|
||||
this._resize_timer = setTimeout(() => this._handleResize(), 50);
|
||||
this._resize_timer = setTimeout(() => this._handleResize(), 100);
|
||||
}
|
||||
|
||||
_handleResize() {
|
||||
cancelAnimationFrame(this._resize_timer);
|
||||
clearTimeout(this._resize_timer);
|
||||
this._resize_timer = null;
|
||||
|
||||
for(const inst of this.ResizeDetector.instances) {
|
||||
inst?.props?.onResize?.();
|
||||
}
|
||||
if ( ! this.ResizeDetector.instances.size )
|
||||
this._needs_resize = true;
|
||||
else
|
||||
for(const inst of this.ResizeDetector.instances) {
|
||||
inst?.props?.onResize?.();
|
||||
}
|
||||
}
|
||||
|
||||
get is_minimal() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue