mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +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
Notes:
sideshowbarker
2024-07-17 17:15:33 +09:00
Author: https://github.com/sppmacd
Commit: bee9cd2113
Pull-request: https://github.com/SerenityOS/serenity/pull/12836
Reviewed-by: https://github.com/thankyouverycool
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()) {
|
||||
auto glyph = maybe_glyph.value();
|
||||
m_selection.extend_to(glyph);
|
||||
set_active_glyph(glyph, ShouldResetSelection::No);
|
||||
scroll_to_glyph(glyph);
|
||||
update();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue