Block extra drag events in original drag handlers

This commit is contained in:
Mikayla Maki 2023-07-26 14:57:46 -07:00
parent ee66f99ce6
commit 354c020612
No known key found for this signature in database
4 changed files with 16 additions and 1 deletions

View file

@ -411,6 +411,10 @@ impl TerminalElement {
})
// Update drag selections
.on_drag(MouseButton::Left, move |event, _: &mut TerminalView, cx| {
if event.end {
return;
}
if cx.is_self_focused() {
if let Some(conn_handle) = connection.upgrade(cx) {
conn_handle.update(cx, |terminal, cx| {