Skip to content

Commit

Permalink
Moving or zooming a diagram affects also other open diagrams #536
Browse files Browse the repository at this point in the history
  • Loading branch information
bindeali committed Sep 3, 2024
1 parent b383731 commit ab1cdc0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/function/FunctionDiagram.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export function changeDiagrams(diagram?: string) {
StoreSettings.update((s) => {
s.selectedDiagram = diagram!;
});
paper.translate(Diagrams[diagram].origin.x, Diagrams[diagram].origin.y)
} else {
console.warn(
"Attempted change to a diagram ID " + diagram + " that doesn't exist."
Expand Down

0 comments on commit ab1cdc0

Please sign in to comment.