Add back semi-funcitonal pane resizing code

This commit is contained in:
Mikayla 2023-12-08 16:29:42 -08:00
parent 25df11dd26
commit fd34d1da31
No known key found for this signature in database
10 changed files with 299 additions and 108 deletions

View file

@ -131,6 +131,12 @@ pub struct MouseMoveEvent {
pub modifiers: Modifiers,
}
impl MouseMoveEvent {
pub fn dragging(&self) -> bool {
self.pressed_button == Some(MouseButton::Left)
}
}
#[derive(Clone, Debug)]
pub struct ScrollWheelEvent {
pub position: Point<Pixels>,