Comments (2)
1.划词翻译按钮不会跟随页面滚动
2.划词翻译按钮的显示位置似乎是鼠标松开时的位置
按钮的位置是鼠标松开的位置,并加上一定偏移量,偏移量可以在设置页面设置。
至于是是否跟随页面滚动,位置基于鼠标
还是选中的文字
,我觉得每个人习惯不同,且对使用影响不大,就选择了简单的做法。
3.从选择文本时的起点一直到鼠标松开时的位置,在这个范围内点击任何位置翻译按钮都不会消失,以及输入框中删除选中的文本翻译按钮也不会消失
这其实是两个问题:
点击选中的文字,按钮不会消失,因为鼠标松开时,文字仍在选中状态,我将加上一点延迟来修复此问题。
输入框的内容删除后按钮也不消失,是因为仅监听鼠标松开事件,没有监听键盘事件。如果同时监听键盘事件,比如按crl+a
,可能出现没法设定钮位置的情况。
4.有些地方翻译会跑到最下面,这会导致看起来很乱 有问题的页面
这个很乱的原因是页面的内容不规范,可通过注入修复补丁来解决,不过目前修复补丁是订阅的方式,不能自定义添加,不是很方便,后面会考虑如何改进一下。
from kiss-translator.
新版可以自行增加webfix
的规则:
然后翻译 页面 效果如下:
from kiss-translator.
Related Issues (20)
- 移动端悬浮按钮功能 HOT 3
- deepl api无法使用 HOT 7
- Feature Request: 可以自己add不限数量的custom API,可以是OpenAI兼容的API HOT 5
- Feature Request: 支持Groq HOT 3
- Feature Request: 支持OpenRouter HOT 3
- 希望增加个点击翻译弹窗外空白处,自动关闭弹窗的功能 HOT 5
- BBC文章内容无法翻译 HOT 1
- 0
- 自定义接口只能使用第一个 HOT 1
- [bug]生词本不同设备同步覆盖存在问题,旧数据丢失 HOT 3
- 许多网站的正文无法翻译 HOT 1
- [REQUEST]大神,请问可以支持via浏览器么? HOT 2
- ollama integration HOT 3
- 无法翻译shadow DOM节点 HOT 2
- deeplx是否可以支持同时填入多个API HOT 8
- [help]使用js脚本的情况下,找不到设置选项 HOT 1
- 功能建议:选中目标语言时不弹翻译框 HOT 1
- BUG:划词翻译弹框问题 HOT 1
- 使用freegpt35的项目的openai的api无法翻译 HOT 5
- 输入框翻译快捷键设置以及输入框原文框点击焦点偏移问题 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kiss-translator.