Skip to content

Commit

Permalink
feat: limit viewport extents when tour is active
Browse files Browse the repository at this point in the history
  • Loading branch information
ascpixi committed Dec 17, 2024
1 parent a75f255 commit d30a322
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,7 @@ export default function App() {
defaultViewport={DEFAULT_VIEWPORT}
onInit={setThisFlow}
fitView={shouldLoadExisting}
translateExtent={inTour ? [[-1500, -500], [2000, 750]] : undefined}
>
<flow.Background variant={flow.BackgroundVariant.Dots}/>
<flow.Controls />
Expand Down

0 comments on commit d30a322

Please sign in to comment.