Skip to content

Commit

Permalink
fix click point too low check
Browse files Browse the repository at this point in the history
  • Loading branch information
OmmyZhang authored Feb 6, 2024
1 parent 0a34d9c commit 9d47abf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game.rs
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ pub fn game(props: &Props) -> Html {
);

let (dx, dy) = (x - ox, y - oy);
if dy > BALL_R * ratio {
if dy > -2 * BALL_R * ratio {
return;
}

Expand Down

0 comments on commit 9d47abf

Please sign in to comment.