Fix layout glitches

This commit is contained in:
aronmal 2023-01-07 13:50:35 +01:00
parent 65832b9b40
commit 0cc0c69d7e
Signed by: aronmal
GPG key ID: 816B7707426FC612

View file

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