Clear followTarget in SET_PAN_TARGET
This commit is contained in:
parent
9bed746ccc
commit
323b700568
@ -66,7 +66,6 @@ export default defineComponent({
|
|||||||
|
|
||||||
pan = () => {
|
pan = () => {
|
||||||
if(!props.player.hidden) {
|
if(!props.player.hidden) {
|
||||||
store.commit(MutationTypes.CLEAR_FOLLOW_TARGET, undefined);
|
|
||||||
store.commit(MutationTypes.SET_PAN_TARGET, props.player);
|
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
|
//Set the pan target, which the map will immediately pan to once
|
||||||
[MutationTypes.SET_PAN_TARGET](state: State, player: LiveAtlasPlayer) {
|
[MutationTypes.SET_PAN_TARGET](state: State, player: LiveAtlasPlayer) {
|
||||||
|
state.followTarget = undefined;
|
||||||
state.panTarget = player;
|
state.panTarget = player;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user