修改点离线样式

This commit is contained in:
guanj
2025-11-03 10:36:11 +08:00
parent 99ad7a3021
commit a7a88e6706
11 changed files with 1225 additions and 12 deletions

View File

@@ -296,7 +296,7 @@ const onMouseWheel = (e: WheelEvent) => {
// 如果缩放中心是鼠标位置,计算新的平移值以保持视觉中心
if (canvasAreaRef.value) {
const rect = canvasAreaRef.value.getBoundingClientRect()
const rect = canvasAreaRef.value?.getBoundingClientRect()
const mouseX = e.clientX - rect.left
const mouseY = e.clientY - rect.top