From 9d5401710166e469f0dc5b99ffddfab2d1b9ffdc Mon Sep 17 00:00:00 2001 From: ttop32 Date: Sat, 11 May 2024 20:55:33 +0900 Subject: [PATCH] reset default event interval time --- src/contentScript.js | 4 ++-- src/pages/index.vue | 2 +- src/util/index.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/contentScript.js b/src/contentScript.js index 7b78b1a1..ca13f29d 100644 --- a/src/contentScript.js +++ b/src/contentScript.js @@ -78,13 +78,13 @@ var listenText = ""; //determineTooltipShowHide based on hover, check mouse over word on every 700ms function startMouseoverDetector() { - enableMouseoverTextEvent(window, setting["tooltipIntervalTime"]); + enableMouseoverTextEvent(window, setting["tooltipEventInterval"]); addEventHandler("mouseoverText", stageTooltipTextHover); } //determineTooltipShowHide based on selection function startTextSelectDetector() { - enableSelectionEndEvent(window, setting["tooltipIntervalTime"]); //set mouse drag text selection event + enableSelectionEndEvent(window, setting["tooltipEventInterval"]); //set mouse drag text selection event addEventHandler("selectionEnd", stageTooltipTextSelect); } diff --git a/src/pages/index.vue b/src/pages/index.vue index 53814cee..fd3b2c8c 100644 --- a/src/pages/index.vue +++ b/src/pages/index.vue @@ -461,7 +461,7 @@ var advancedTabData = { " (Experimental)", optionList: toggleList, }, - tooltipIntervalTime: { + tooltipEventInterval: { description: browser.i18n.getMessage("Tooltip_Interval_Time"), optionList: tooltipIntervalTimeList, }, diff --git a/src/util/index.js b/src/util/index.js index 277ebfee..8f0e0cbe 100644 --- a/src/util/index.js +++ b/src/util/index.js @@ -89,7 +89,7 @@ export var defaultData = { ignoreCallbackOptionList: ["historyList"], popupCount: "0", langPriority: { auto: 9999999, null: 9999999 }, - tooltipIntervalTime: "0.2", + tooltipEventInterval: "0.2", cardPlayMeta: ["image"], cardTagSelected: [],