修改点离线样式
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user