Skip to content

Commit

Permalink
reset default event interval time
Browse files Browse the repository at this point in the history
  • Loading branch information
ttop32 committed May 11, 2024
1 parent c9f9826 commit 9d54017
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/contentScript.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ var advancedTabData = {
" (Experimental)",
optionList: toggleList,
},
tooltipIntervalTime: {
tooltipEventInterval: {
description: browser.i18n.getMessage("Tooltip_Interval_Time"),
optionList: tooltipIntervalTimeList,
},
Expand Down
2 changes: 1 addition & 1 deletion src/util/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: [],
Expand Down

0 comments on commit 9d54017

Please sign in to comment.