mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
fix dirtying transform saved status by properly cloning transform object
This commit is contained in:
parent
a065a610c1
commit
1ce26ed704
@ -209,7 +209,8 @@ function saveCurrentTransform() {
|
||||
const newTransform = pzInstance.getTransform();
|
||||
|
||||
if (JSON.stringify(newTransform) !== JSON.stringify(mapData.transform)) {
|
||||
mapData.transform = newTransform;
|
||||
// clone transform object
|
||||
mapData.transform = JSON.parse(JSON.stringify(newTransform));
|
||||
|
||||
saveData();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user