Clear followTarget in SET_PAN_TARGET
This commit is contained in:
parent
9bed746ccc
commit
323b700568
@ -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);
|
||||
}
|
||||
},
|
||||
|
@ -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;
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user