Fix layout glitches

This commit is contained in:
aronmal 2023-01-07 13:50:35 +01:00
parent 898fd6d0a5
commit c7f019d4a0
Signed by: aronmal
GPG key ID: 816B7707426FC612

View file

@ -37,8 +37,8 @@ export const hitReducer = (formObject: HitType[], action: HitDispatchType) => {
}
export const initlialTarget = {
show: false,
x: 0,
y: 0
x: 2,
y: 2
};
export const initlialTargetPreview = {
newX: 0,
@ -47,7 +47,7 @@ export const initlialTargetPreview = {
appearOK: false,
eventReady: true,
show: false,
x: 0,
y: 0
x: 2,
y: 2
};
export const isHit = (hits: HitType[], x: number, y: number) => hits.filter(h => h.x === x && h.y === y);