mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-21 02:08:12 +03: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: https://github.com/SerenityOS/serenity/commit/bee9cd2113 Pull-request: https://github.com/SerenityOS/serenity/pull/12836 Reviewed-by: https://github.com/thankyouverycool
@ -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…
Reference in New Issue
Block a user