Use press event on gallery header instead of drag event to start window drag, fixes #537

This commit is contained in:
Jeremy Soller 2025-03-13 15:49:51 -06:00
parent 959d7e2c49
commit fac5a25a3f
No known key found for this signature in database
GPG key ID: 670FDFB5428E05CA

View file

@ -3577,7 +3577,7 @@ impl Tab {
row = row.push(widget::Space::with_width(Length::Fixed(space_m.into())));
// This mouse area provides window drag while the header bar is hidden
let mouse_area = mouse_area::MouseArea::new(row)
.on_drag(|_| Message::WindowDrag)
.on_press(|_| Message::WindowDrag)
.on_double_click(|_| Message::WindowToggleMaximize);
column = column.push(mouse_area);
}