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 entryId = 0
|
||||||
let path = []
|
let path = []
|
||||||
|
let center = [canvasCenter.x, canvasCenter.y]
|
||||||
|
|
||||||
let websiteGroupElements = []
|
let websiteGroupElements = []
|
||||||
let subredditGroupElements = []
|
let subredditGroupElements = []
|
||||||
|
@ -781,8 +782,8 @@ function initDraw() {
|
||||||
]
|
]
|
||||||
|
|
||||||
scaleZoomOrigin = [
|
scaleZoomOrigin = [
|
||||||
0, // + container.offsetLeft
|
canvasCenter.x - center[0],// + container.offsetLeft
|
||||||
0 // + container.offsetTop
|
canvasCenter.y - center[1]// + container.offsetTop
|
||||||
]
|
]
|
||||||
|
|
||||||
applyView()
|
applyView()
|
||||||
|
|
Loading…
Reference in a new issue