mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 18:32:28 -05:00
VBForm: Fixed cursor not changing on resize /w multiple selections
We were resetting the cursor during multiple selections since our mouse can only be over a single widget at a time.
This commit is contained in:
parent
7a906ab539
commit
8fc2034ca1
1 changed files with 6 additions and 3 deletions
|
@ -291,9 +291,12 @@ void VBForm::mousemove_event(GMouseEvent& event)
|
|||
|
||||
set_cursor_type_from_grabber(m_resize_direction);
|
||||
} else {
|
||||
for_each_selected_widget([&](auto& widget) {
|
||||
set_cursor_type_from_grabber(widget.grabber_at(event.position()));
|
||||
});
|
||||
for (auto& widget : m_selected_widgets) {
|
||||
auto grabber_at = widget->grabber_at(event.position());
|
||||
set_cursor_type_from_grabber(grabber_at);
|
||||
if (grabber_at != Direction::None)
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue