mirror of
https://github.com/unanmed/HumanBreak.git
synced 2026-11-11 16:14:30 +08:00
完善高清化
This commit is contained in:
1 parent
d7bc60cdd2
commit
8f6df7bee8
5 files changed
+37
-154
No files matched your search
@@ -203,7 +203,7 @@ function draw() {
|
||||
function click(e: MouseEvent) {
|
||||
const px = e.offsetX;
|
||||
const py = e.offsetY;
|
||||
const w = canvas.width / devicePixelRatio;
|
||||
const w = canvas.width;
|
||||
const per = w / 11;
|
||||
const x = Math.floor(px / per);
|
||||
const y = Math.floor(py / per);
|
||||
|
||||
Reference in new issue
Block a user