Block extra drag events in original drag handlers
This commit is contained in:
parent
ee66f99ce6
commit
354c020612
4 changed files with 16 additions and 1 deletions
|
@ -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| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue