Fix layout glitches
This commit is contained in:
parent
898fd6d0a5
commit
c7f019d4a0
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue