调整画布布局

This commit is contained in:
X1627315083
2024-09-11 16:36:08 +08:00
parent 4e2d3d672c
commit d2cf4a2969
21 changed files with 898 additions and 675 deletions

View File

@@ -7,6 +7,7 @@ const getMousePosition = (e,bor,dom) => {
offsetY: touch.clientY - e.target.getBoundingClientRect().top,
clientX:touch.clientX,
clientY:touch.clientY,
target:e.target,
}
if(dom){
event.offsetX = touch.clientX - dom.getBoundingClientRect().left
@@ -18,6 +19,7 @@ const getMousePosition = (e,bor,dom) => {
offsetY:e.offsetY,
clientX:e.clientX,
clientY:e.clientY,
target:e.target,
}
}
return event