pane: stop propagation of drag/click events in resizing handle
This prevents focused editor from being scrolled while a pane is getting resized. Fixes: Mouse down to start an editor resize causes a scroll
This commit is contained in:
parent
17168386bd
commit
b6d8665fc1
1 changed files with 3 additions and 0 deletions
|
@ -698,6 +698,7 @@ mod element {
|
|||
workspace
|
||||
.update(cx, |this, cx| this.schedule_serialize(cx))
|
||||
.log_err();
|
||||
cx.stop_propagation();
|
||||
cx.refresh();
|
||||
}
|
||||
|
||||
|
@ -754,8 +755,10 @@ mod element {
|
|||
workspace
|
||||
.update(cx, |this, cx| this.schedule_serialize(cx))
|
||||
.log_err();
|
||||
|
||||
cx.refresh();
|
||||
}
|
||||
cx.stop_propagation();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue