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:24:03 +01:00
parent 17168386bd
commit b6d8665fc1
+3
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();
}
}
});