diff --git a/src/components/list/PlayerListItem.vue b/src/components/list/PlayerListItem.vue index 3cfe9e8..fc75e49 100644 --- a/src/components/list/PlayerListItem.vue +++ b/src/components/list/PlayerListItem.vue @@ -66,7 +66,6 @@ export default defineComponent({ pan = () => { if(!props.player.hidden) { - store.commit(MutationTypes.CLEAR_FOLLOW_TARGET, undefined); store.commit(MutationTypes.SET_PAN_TARGET, props.player); } }, diff --git a/src/store/mutations.ts b/src/store/mutations.ts index 0a5e3ad..8442e1e 100644 --- a/src/store/mutations.ts +++ b/src/store/mutations.ts @@ -531,6 +531,7 @@ export const mutations: MutationTree & Mutations = { //Set the pan target, which the map will immediately pan to once [MutationTypes.SET_PAN_TARGET](state: State, player: LiveAtlasPlayer) { + state.followTarget = undefined; state.panTarget = player; },