8000 Feat/only display chinese translation once by sunnylost · Pull Request #83 · word-hunter/word-hunter · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Feat/only display chinese translation once #83

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

Merged

Conversation

sunnylost
Copy link
Contributor

Fix Issue 77.

There is a scenario that makes this behavior less intuitive: the browser can remember the last position and restore it. Currently, the Chinese translation will only appear in this viewport, which is not necessarily at the top of the page. Therefore, when you scroll up, the translation of the same unknown word will not appear because we consider "first" to mean when we first saw it, not the first appearance from the top of the page.

Copy link
Collaborator
@sapjax sapjax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sapjax sapjax merged commit d5d2d04 into word-hunter:main Jul 24, 2024
@sunnylost sunnylost deleted the feat/only-display-chinese-translation-once branch September 6, 2024 08:25
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

Successfully merging this pull request may close these issues.

FR: show Chinese translation only for the first word on the current webpage
2 participants
0