-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Reader: native browser 'find' function is not great #1180
Comments
Hmmm... What happens if you make the underlying stream |
That's a great suggestion! And it does the trick too. In Chrome the number of occurrences reflects what is just on screen, and in Electron it steps through the ones on screen and then wraps round. In terms of the Reader, are there any downsides to setting the visibility to hidden? It's a small change but I'm not sure of the greater impact it may have. |
I don't think it has any downsides, but we'll have to see. Might affect the way we scroll the underlying list when moving to the next article. |
This issue has been marked as stale because it hasn't been updated in a while. It will be closed in a week. If you would like it to remain open, can you please comment below and see what you can do to get things moving with this issue? Thanks! 🙏 |
If you use the browsers 'find' function it can get very confused because of the overlayed nature of Calypso pages. This is because the find searches through all HTML, even if it's not visible. If you are looking at a single post in the Reader then the Reader itself is still in the HTML, and the find function searches there even though it's not visible to the user.
Example:
I am in the Reader and search for 'and' - it finds 21 occurrences on the page. Repeatedly pressing the find shortcut cycles through these with an orange highlight. Everything is working as I would expect.
If I click on the post and then search for 'and' again I get the same number of results - 21 - even though only 3 are visible.
Repeatedly pressing the find shortcut does nothing other than change the
1 of 21
number in the find box. This is because it is highlighting search terms in the main Reader, which is not visible.Overall this isn't a major problem - the terms are still highlighted - and it's going to be pretty difficult to fix.
It causes more of a problem in the desktop app as there is no built-in find function and we need to use
window.find
. This does not highlight all the terms, but highlights individual terms each time it is called. In the case of the single post it just doesn't work well.Note: I've only tried this in Chrome, which is what the desktop app is using.
The text was updated successfully, but these errors were encountered: