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

[Bug]在空白处拖动鼠标后翻译结果消失 #41

Closed
PikakueNNZ opened this issue Mar 27, 2022 · 4 comments
Closed

[Bug]在空白处拖动鼠标后翻译结果消失 #41

PikakueNNZ opened this issue Mar 27, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@PikakueNNZ
Copy link

To Reproduce

  1. 用鼠标选中一段文字
  2. 在旁边空白处按下鼠标左键拖动一小段距离(不选中任何文字)

Expected behavior
完成步骤1后正常显示翻译结果,完成步骤2后翻译结果消失,出现报错
[Request Error]
Engine not available, invalid secret, or request too fast.
Please consider using another translate engine or posting issue here: https://github.com/windingwind/zotero-pdf-translate/issues
TypeError: xhr.response[0] is null

Screenshots
image
image

Additional context
我在阅读过程中喜欢取消选中,所以会在旁边空白处进行点击,而有时候点击鼠标过程中鼠标会有少许移动,所以就遇到了这个问题。
是否可以在拖动鼠标后判断选中文字的数量,若未选中文字或选中文字数量少于某个数值则不进行翻译

@PikakueNNZ PikakueNNZ added the bug Something isn't working label Mar 27, 2022
@windingwind
Copy link
Owner

Thanks for letting me know!
I’ll try to fix it.

@windingwind
Copy link
Owner

旁边空白处指的是什么位置,文档空白处还是其他地方?我似乎无法复现

@windingwind windingwind added the question Further information is requested label Mar 28, 2022
@windingwind
Copy link
Owner

Try v0.3.7

@PikakueNNZ
Copy link
Author

旁边空白处指的是什么位置,文档空白处还是其他地方?我似乎无法复现

指文档空白处,v0.3.9完美解决了该问题,非常感谢

@windingwind windingwind removed the question Further information is requested label Mar 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants