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:
Aliaksandr Kalenik 2025-07-15 16:49:30 +02:00 committed by Luke Wilde
commit 8142c311ec
Notes: github-actions[bot] 2025-07-15 16:26:08 +00:00

View file

@ -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();
}