Dispatch Event refactoring. Appears to be workingCo-Authored-By: nathan@zed.dev
This commit is contained in:
parent
b97940be9b
commit
0f43ef9331
7 changed files with 492 additions and 69 deletions
|
@ -190,7 +190,7 @@ impl Sidebar {
|
|||
.with_cursor_style(CursorStyle::ResizeLeftRight)
|
||||
.on_down(MouseButton::Left, |_, _| {}) // This prevents the mouse down event from being propagated elsewhere
|
||||
.on_drag(MouseButton::Left, move |e, cx| {
|
||||
let delta = e.prev_mouse_position.x() - e.position.x();
|
||||
let delta = e.position.x() - e.prev_mouse_position.x();
|
||||
let prev_width = *actual_width.borrow();
|
||||
*custom_width.borrow_mut() = 0f32
|
||||
.max(match side {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue