diff --git a/frontend/src/app.tsx b/frontend/src/app.tsx index d98f6b1..b81af3d 100644 --- a/frontend/src/app.tsx +++ b/frontend/src/app.tsx @@ -118,8 +118,8 @@ function RealApp({ coords }: { coords: { lat: number; long: number } }) { const time = (noteDistance / NOTE_SPEED) * 2; const skew = Date.now() - msg.timestamp; const timeout = time - skew; - if (timeout > 0) { - setTimeout(() => player.synthesizeBell(msg.note), timeout); + if (timeout > -500) { + setTimeout(() => player.synthesizeBell(msg.note), Math.max(timeout, 0)); } }); return cleanup;