Skip to content

Commit

Permalink
Merge pull request #4 from Pettor/bugfix/remove-clamp
Browse files Browse the repository at this point in the history
fix: remove clamp when disabled from toolbar
  • Loading branch information
Pettor authored Feb 11, 2024
2 parents f6c904a + 8af7f18 commit bb6dd15
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/viewport/ViewportComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ export const ViewportComponent = PixiComponent<ViewportComponentProps, ViewportE
direction: "all",
underflow: "center",
});
} else {
instance.plugins.remove("clamp");
}
}

Expand Down

0 comments on commit bb6dd15

Please sign in to comment.