diff --git a/simple-translate/simple-translate.js b/simple-translate/simple-translate.js index 303d0b2..2757a9d 100644 --- a/simple-translate/simple-translate.js +++ b/simple-translate/simple-translate.js @@ -38,6 +38,8 @@ async function Select(e) { const shouldTranslate = existsSelectionWord && isLeftClick && isPanelOutside; if (!shouldTranslate) return; + clickPosition = e; + //選択した言語が翻訳先言語と異なるか判定 const shouldShowButtons = S.get().whenSelectText != "dontShowButton"; if (S.get().ifCheckLang && shouldShowButtons) { @@ -45,7 +47,6 @@ async function Select(e) { if (!shouldTranslate) return; } - clickPosition = e; switch (S.get().whenSelectText) { case "showButton": if (selectionWord.length == 0) return;