Fix impersistent highlight visibility - #21535
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #21535 +/- ##
==========================================
+ Coverage 89.83% 89.85% +0.01%
==========================================
Files 263 263
Lines 66802 66806 +4
==========================================
+ Hits 60014 60027 +13
+ Misses 6788 6779 -9
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
@calixteman I applied the changes discussed |
| layer.updateMode(mode); | ||
| } | ||
|
|
||
| const highlightShowAllState = this.#showAllStates?.get( |
There was a problem hiding this comment.
I don't think it's enough in general.
With tracemonkey.pdf, you can
- highlight on the 1st page
- scroll and highlight on the last one
- scroll back to the first
- hide the highlights
- turn off the highlight mode
- turn it on
- scroll to the last page.
There was a problem hiding this comment.
Thanks for drawing my attention to these cases! I'll check them out.
a7645cc to
9ab860e
Compare
9ab860e to
4d5fca8
Compare
| for (const editor of this.#allEditorsIterator) { | ||
| editor.enableEditing(); | ||
| editor.show(true); | ||
| editor.show(); |
There was a problem hiding this comment.
@calixteman When a page layer was turned back on, every editor was shown again and so did the highlights.
|
It doesn't work unfortunately, here's a STR:
The modified freetext is no more visible. An other problem, here's a STR:
A highlight is visible. |
Fixes #21498
The fix ensures that the highlight visibility is persistent across all pages regardless updates in editor mode or scrolling while the "Show all" toggle button always reflects the correct state.
The three integration tests cover the following cases:
Test 1
Test 2
Test 3