Fix regression when view not moving directly to the editing shape

This commit is contained in:
Hans5958 2023-03-20 18:09:09 +07:00
parent c904ca501a
commit c87460c6e9

View file

@ -50,6 +50,7 @@ const discordPattern = /^(?:(?:https?:\/\/)?(?:www\.)?(?:(?:discord)?\.?gg|disco
let entryId = 0
let path = []
let center = [canvasCenter.x, canvasCenter.y]
let websiteGroupElements = []
let subredditGroupElements = []
@ -781,8 +782,8 @@ function initDraw() {
]
scaleZoomOrigin = [
0, // + container.offsetLeft
0 // + container.offsetTop
canvasCenter.x - center[0],// + container.offsetLeft
canvasCenter.y - center[1]// + container.offsetTop
]
applyView()