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 = {
|
||||
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue