Skip to content

Commit

Permalink
Prevent comments from being processed when selected in the layers tree.
Browse files Browse the repository at this point in the history
  • Loading branch information
bernesto committed Mar 6, 2024
1 parent e3caf50 commit 877ec19
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/commands/view/ShowOffset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ export default {
const zoom = this.em.getZoomDecimal();
const el = opt.el as HTMLElement | undefined;

// if (!(el instanceof HTMLElement)) {
// return;
// }
if (!(el instanceof HTMLElement)) {
return;
}

if (!config.showOffsets || !el || isTextNode(el) || (!config.showOffsetsSelected && state == 'Fixed')) {
editor.stopCommand(`${this.id}`, opts);
Expand Down

0 comments on commit 877ec19

Please sign in to comment.