fix: trashcan flyout opening on drag (#7691)

This commit is contained in:
Beka Westberg
2023-12-04 19:14:19 +00:00
committed by GitHub
parent f363252d35
commit 71ded9dd89

View File

@@ -545,7 +545,7 @@ export class Trashcan
/** Inspect the contents of the trash. */
click() {
if (!this.hasContents()) {
if (!this.hasContents() || this.workspace.isDragging()) {
return;
}
this.openFlyout();