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:
Piotr Osiewicz 2024-01-18 14:07:53 +01:00
parent 17168386bd
commit b6d8665fc1

View file

@ -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();
}
}
});