Skip to content

Commit

Permalink
Fix clientX,Y display for window size
Browse files Browse the repository at this point in the history
  • Loading branch information
garykac committed Sep 22, 2023
1 parent 116b2cb commit 65fafcf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.DS_Store
_ref/*
2 changes: 1 addition & 1 deletion window-size.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@

d = document;
out = "<p>screenX,Y: " + e.screenX + "," + e.screenY + "</p>";
out += "<p>clientX,Y: " + e.screenX + "," + e.screenY + "</p>";
out += "<p>clientX,Y: " + e.clientX + "," + e.clientY + "</p>";
d.getElementById("center_text").innerHTML = out;
}

Expand Down

0 comments on commit 65fafcf

Please sign in to comment.