mirror of
https://github.com/placeAtlas/atlas.git
synced 2024-11-17 15:31:43 +01:00
Fix regression when view not moving directly to the editing shape
This commit is contained in:
parent
c904ca501a
commit
c87460c6e9
1 changed files with 3 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue