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

@ -137,7 +137,7 @@ impl<M: ManagedView> Element for RightClickMenu<M> {
cx.on_mouse_event(move |event: &MouseDownEvent, phase, cx| {
if phase == DispatchPhase::Bubble
&& event.button == MouseButton::Right
&& bounds.contains_point(&event.position)
&& bounds.contains(&event.position)
{
cx.stop_propagation();
cx.prevent_default();