From bee9cd21136308003fe932bb02e2729af12e2458 Mon Sep 17 00:00:00 2001 From: Maciej Date: Tue, 1 Mar 2022 20:58:22 +0100 Subject: LibGUI: Update active glyph when drag-selecting in GlyphMapWidget This matches behavior of text selecting --- Userland/Libraries/LibGUI/GlyphMapWidget.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'Userland') diff --git a/Userland/Libraries/LibGUI/GlyphMapWidget.cpp b/Userland/Libraries/LibGUI/GlyphMapWidget.cpp index f53005d905..9e26303ede 100644 --- a/Userland/Libraries/LibGUI/GlyphMapWidget.cpp +++ b/Userland/Libraries/LibGUI/GlyphMapWidget.cpp @@ -191,6 +191,7 @@ void GlyphMapWidget::mousemove_event(GUI::MouseEvent& event) if (auto maybe_glyph = glyph_at_position(event.position()); maybe_glyph.has_value()) { auto glyph = maybe_glyph.value(); m_selection.extend_to(glyph); + set_active_glyph(glyph, ShouldResetSelection::No); scroll_to_glyph(glyph); update(); } -- cgit v1.2.3