Clear followTarget in SET_PAN_TARGET

This commit is contained in:
James Lyne 2022-01-13 13:38:26 +00:00
parent 9bed746ccc
commit 323b700568
2 changed files with 1 additions and 1 deletions

View File

@ -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);
}
},

View File

@ -531,6 +531,7 @@ export const mutations: MutationTree<State> & 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;
},