mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-07-27 04:58:30 +00:00
4.20.48
* Fixed: Player sizing issue for Firefox users. * Fixed: Errors rendering tool-tips for chat actions. * Changed: Tweak parameters for automatic error reports to filter out more invalid error reports.
This commit is contained in:
parent
b7a2ce3fcf
commit
32859318b2
8 changed files with 66 additions and 19 deletions
|
@ -69,7 +69,7 @@ export class Tooltip {
|
|||
|
||||
this._accessor = `_ffz_tooltip$${last_id++}`;
|
||||
|
||||
this._onMouseOut = e => e.target && e.target.dataset.forceOpen !== 'true' && this._exit(e.target);
|
||||
this._onMouseOut = e => e.target && e.target?.dataset?.forceOpen !== 'true' && this._exit(e.target);
|
||||
|
||||
if ( this.options.manual ) {
|
||||
// Do nothing~!
|
||||
|
@ -164,19 +164,20 @@ export class Tooltip {
|
|||
if ( ! this._shift_af )
|
||||
this._shift_af = requestAnimationFrame(() => {
|
||||
this._shift_af = null;
|
||||
for(const el of this.elements) {
|
||||
const tip = el[this._accessor];
|
||||
if ( tip && tip.outer ) {
|
||||
tip.outer.dataset.shift = this.shift_state;
|
||||
tip.update();
|
||||
if ( this.elements )
|
||||
for(const el of this.elements) {
|
||||
const tip = el[this._accessor];
|
||||
if ( tip && tip.outer ) {
|
||||
tip.outer.dataset.shift = this.shift_state;
|
||||
tip.update();
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
cleanup() {
|
||||
if ( this.options.manual )
|
||||
if ( this.options.manual || ! this.elements )
|
||||
return;
|
||||
|
||||
for(const el of this.elements) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue