Skip to content

Commit

Permalink
update based on a reviewer's comment
Browse files Browse the repository at this point in the history
  • Loading branch information
beru committed Sep 15, 2024
1 parent f2297c1 commit 74940c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -590,9 +590,9 @@ view.View = class {
if (selection && selection.length > 0) {
const container = this._element('graph');
let selLeft = Number.POSITIVE_INFINITY;
let selRight = 0;
let selRight = Number.NEGATIVE_INFINITY;
let selTop = Number.POSITIVE_INFINITY;
let selBottom = 0;
let selBottom = Number.NEGATIVE_INFINITY;
for (const element of selection) {
const rect = element.getBoundingClientRect();
selLeft = Math.min(selLeft, rect.left);
Expand Down

0 comments on commit 74940c7

Please sign in to comment.