1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-07-27 21:18:30 +00:00
* Fixed: Popout Chat from the dashboard and mod view not working correctly. Please note there is still a race condition on the dashboard popout chat. It may require several refreshes or not work at all depending on your Internet connection.
* Fixed: Only load the chat types from Twitch once. Ignore any future module loads.
* Fixed: Hide the empty bar at the bottom of Twitch pages due to incorrect styles being applied to the new snackbar container element.
* Fixed: Apollo should only clear the query cache if it makes changes to a query. Likewise, Apollo should only fetch the `gql-printer` module upon demand.
* Fixed: Remove debug logging from `utilities/dom::createElement`
* Changed: Slightly delay tool-tip repositioning when rich content is loaded, hopefully reducing flicker events.
* Changed: Refactor WebMunch, adding compatibility for a future webpack update and reducing the number of modules checked when scanning for modules.
* Changed: Allow Switchboard to keep trying to load routes if the one it tries fails to actually populate `require()`.
* API Added: `EventEmitter::hasListeners(event)` method for determining if there are any listeners for a specific event.
* API Added: `localStorage.ffzLogLevel` can be set to override the global log level.
* API Added: `log.verbose(...)` as an even weaker logging level than `debug(...)`
* API Changed: Allow Tooltip instances to add tool-tips to the DOM under a different element than the parent element used for events.
This commit is contained in:
SirStendec 2021-02-24 14:38:25 -05:00
parent 77d6cf56d2
commit ab4f72c345
16 changed files with 666 additions and 127 deletions

View file

@ -45,6 +45,7 @@ export class Tooltip {
this.check_modifiers = this.options.check_modifiers;
this.parent = parent;
this.container = this.options.container || this.parent;
this.cls = cls;
if ( this.check_modifiers )
@ -134,6 +135,7 @@ export class Tooltip {
this.elements = null;
this._onMouseOut = this._onMouseOver = null;
this.container = null;
this.parent = null;
}
@ -367,8 +369,9 @@ export class Tooltip {
tip._update = () => {
if ( tip.popper ) {
tip.popper.destroy();
tip.popper = new Popper(popper_target, el, pop_opts);
tip.popper.update();
/*tip.popper.destroy();
tip.popper = new Popper(popper_target, el, pop_opts);*/
}
}
@ -412,7 +415,7 @@ export class Tooltip {
// Add everything to the DOM and create the Popper instance.
tip.popper = new Popper(popper_target, el, pop_opts);
this.parent.appendChild(el);
this.container.appendChild(el);
tip.visible = true;
if ( opts.onShow )