mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:17:45 +00:00
LibGUI: Add ability to disable multiselect for views
This commit is contained in:
parent
f266f0e880
commit
d4c6ae8263
5 changed files with 45 additions and 3 deletions
|
@ -221,9 +221,11 @@ void IconView::mousedown_event(MouseEvent& event)
|
|||
auto adjusted_position = to_content_position(event.position());
|
||||
|
||||
m_might_drag = false;
|
||||
m_rubber_banding = true;
|
||||
m_rubber_band_origin = adjusted_position;
|
||||
m_rubber_band_current = adjusted_position;
|
||||
if (is_multi_select()) {
|
||||
m_rubber_banding = true;
|
||||
m_rubber_band_origin = adjusted_position;
|
||||
m_rubber_band_current = adjusted_position;
|
||||
}
|
||||
}
|
||||
|
||||
void IconView::mouseup_event(MouseEvent& event)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue