Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
fohristiwhirl committed Jun 17, 2019
1 parent e5ff0c7 commit c00adae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 95_renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -484,12 +484,12 @@ function NewRenderer() {

let [mousex, mousey] = [this.mousex, this.mousey];

// Assumes mousex and mousey are relative to canvas top left.

if (typeof mousex !== "number" || typeof mousey !== "number") {
return null;
}

// Assumes mousex and mousey are relative to the whole window.

mousex -= boardfriends.getBoundingClientRect().left;
mousey -= boardfriends.getBoundingClientRect().top;

Expand Down

0 comments on commit c00adae

Please sign in to comment.