Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[求助/建议] 滚动加载翻译和鼠标悬停这两种方式共存 #221

Open
InMirrors opened this issue Feb 28, 2025 · 2 comments
Open

Comments

@InMirrors
Copy link

首先感谢作者。

我之前用沉浸式翻译,它能同时支持这两种方式触发翻译。可以按快捷键触发滚动加载翻译,翻译全部页面,或者鼠标悬浮触发只翻译一段。在阅读外文页面时,如果想先自己阅读,看不懂再翻译,使用鼠标悬停方式触发;如果想快速阅读或者文本比较难懂,可以用快捷键翻译全部。

本项目的快捷键不是触发滚动加载翻译,而是翻译开关,使得只能二选一,要用另外一种方式需要更改设置。如果能增加一个快捷键触发滚动翻译就好了。要实现这个功能的话,需要改哪些地方?我没学过 JavaScript,不过可以在 AI 的帮助下试试看。

@fishjar
Copy link
Owner

fishjar commented Mar 7, 2025

大概明白你的意思,如果同时支持两种方式触发,可能改动小一点,如果是要做成两种方式快速切换,改动比较大。

@InMirrors
Copy link
Author

是的,额外增加个快捷键触发就能实现我说的功能了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants