summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorMaciej <sppmacd@pm.me>2022-03-01 20:58:22 +0100
committerAndreas Kling <kling@serenityos.org>2022-03-17 17:05:56 +0100
commitbee9cd21136308003fe932bb02e2729af12e2458 (patch)
treee12601a67ed65e8af18e6553ae2f2359bbb0f97f /Userland
parentd3836f982a377fa98051da63dbe44f98bf3d1168 (diff)
downloadserenity-bee9cd21136308003fe932bb02e2729af12e2458.zip
LibGUI: Update active glyph when drag-selecting in GlyphMapWidget
This matches behavior of text selecting
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibGUI/GlyphMapWidget.cpp1
1 files changed, 1 insertions, 0 deletions
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();
}