fix var text

This commit is contained in:
Gabe Yuan
2023-09-06 23:44:01 +08:00
parent b7df44c35a
commit c4fb39f02f
3 changed files with 5 additions and 5 deletions

View File

@@ -8,7 +8,7 @@ import {
OPT_STYLE_FUZZY,
SHADOW_KEY,
OPT_MOUSEKEY_DISABLE,
OPT_MOUSEKEY_NONE,
OPT_MOUSEKEY_MOUSEOVER,
} from "../config";
import Content from "../views/Content";
import { updateFetchPool, clearFetchPool } from "./fetch";
@@ -245,7 +245,7 @@ export class Translator {
_handleMouseover = (e) => {
const key = this._setting.mouseKey.slice(3);
if (this._setting.mouseKey === OPT_MOUSEKEY_NONE || e[key]) {
if (this._setting.mouseKey === OPT_MOUSEKEY_MOUSEOVER || e[key]) {
e.target.removeEventListener("mouseover", this._handleMouseover);
this._render(e.target);
}