mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:57:35 +00:00
LibGUI: Update active glyph when drag-selecting in GlyphMapWidget
This matches behavior of text selecting
This commit is contained in:
parent
d3836f982a
commit
bee9cd2113
1 changed files with 1 additions and 0 deletions
|
@ -191,6 +191,7 @@ void GlyphMapWidget::mousemove_event(GUI::MouseEvent& event)
|
||||||
if (auto maybe_glyph = glyph_at_position(event.position()); maybe_glyph.has_value()) {
|
if (auto maybe_glyph = glyph_at_position(event.position()); maybe_glyph.has_value()) {
|
||||||
auto glyph = maybe_glyph.value();
|
auto glyph = maybe_glyph.value();
|
||||||
m_selection.extend_to(glyph);
|
m_selection.extend_to(glyph);
|
||||||
|
set_active_glyph(glyph, ShouldResetSelection::No);
|
||||||
scroll_to_glyph(glyph);
|
scroll_to_glyph(glyph);
|
||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue