Skip to content

Commit

Permalink
opti: 调低鼠标悬浮时间
Browse files Browse the repository at this point in the history
  • Loading branch information
Bistutu committed Feb 17, 2024
1 parent 9194ad4 commit a2f3cd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FluentRead.js
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ const settingManager = {
mouseX = event.clientX;
mouseY = event.clientY;

handler(mouseX, mouseY, 150);
handler(mouseX, mouseY, 50);
});

// 检查是否需要拉取数据
Expand Down Expand Up @@ -763,7 +763,7 @@ const chatMgs = {
function translate(node) {
let model = util.getValue('model')

if (!node.innerText) return; // 如果没有文本,则跳过
if (!node.innerText.trim()) return; // 空文本,跳过

// 检测语言类型,如果是中文则不翻译
baiduDetectLang(node.innerText).then(lang => {
Expand Down

0 comments on commit a2f3cd5

Please sign in to comment.