mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibWeb: Reset document's cursor blink timer after selection change
For contenteditable `Selection` in collapsed state represents cursor position, so whenever it's update, we should also reset the blink timer. Fixes bug on Discord when cursor is blinking while it is being moved by pressing arrow keys.
This commit is contained in:
parent
e26d848dde
commit
8142c311ec
Notes:
github-actions[bot]
2025-07-15 16:26:08 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: 8142c311ec
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5462
Reviewed-by: https://github.com/gmta ✅
1 changed files with 1 additions and 0 deletions
|
@ -105,6 +105,7 @@ void Range::update_associated_selection()
|
|||
|
||||
auto& document = m_start_container->document();
|
||||
if (auto* viewport = document.paintable()) {
|
||||
document.reset_cursor_blink_cycle();
|
||||
viewport->recompute_selection_states(*this);
|
||||
viewport->set_needs_display();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue