LibGUI: Update active glyph when drag-selecting in GlyphMapWidget

This matches behavior of text selecting
This commit is contained in:
Maciej 2022-03-01 20:58:22 +01:00 committed by Andreas Kling
parent d3836f982a
commit bee9cd2113
Notes: sideshowbarker 2024-07-17 17:15:33 +09:00

View File

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