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:
@@ -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();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user