Update 0BDFDB.plugin.js

This commit is contained in:
Mirco Wittrien 2021-05-25 09:27:35 +02:00
parent d021e82a53
commit 518c272a64
1 changed files with 2 additions and 0 deletions

View File

@ -1602,6 +1602,7 @@ module.exports = (_ => {
if (config.list || BDFDB.ObjectUtils.is(config.guild)) BDFDB.DOMUtils.addClass(tooltip, BDFDB.disCN.tooltiplistitem);
const removeTooltip = _ => {
document.removeEventListener("wheel", mouseMove);
document.removeEventListener("mousemove", mouseMove);
document.removeEventListener("mouseleave", mouseLeave);
BDFDB.DOMUtils.remove(itemLayer);
@ -1788,6 +1789,7 @@ module.exports = (_ => {
};
const mouseLeave = e => removeTooltip();
if (!config.perssist) {
document.addEventListener("wheel", mouseMove);
document.addEventListener("mousemove", mouseMove);
document.addEventListener("mouseleave", mouseLeave);
}