Skip to content

Commit

Permalink
fixup! fix: Center selected entity correctly based on whether the dra…
Browse files Browse the repository at this point in the history
…wer is open
  • Loading branch information
joshlarson committed Nov 20, 2023
1 parent c8f1df8 commit d6aaf72
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions assets/src/components/map/follower.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,18 +149,17 @@ export const StatefulInteractiveFollower = (props: FollowerProps) => {

export const RecenterControlWithInterruptibleFollower = (
props: InterruptibleFollowerProps
) => {
return (
<>
<InterruptibleFollower {...props} />
<RecenterControl
position="topright"
active={props.shouldFollow}
onActivate={() => props.setShouldFollow(true)}
/>
</>
)
}
) => (
<>
<InterruptibleFollower {...props} />
<RecenterControl
position="topright"
active={props.shouldFollow}
onActivate={() => props.setShouldFollow(true)}
/>
</>
)

// #endregion Follower Variants

// #region Follower Update Functions
Expand Down

0 comments on commit d6aaf72

Please sign in to comment.