Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Commit

Permalink
Increase step size for one meter grid step.
Browse files Browse the repository at this point in the history
  • Loading branch information
badnames committed Feb 9, 2024
1 parent 285a8ce commit cca7b0c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import { ONE_METER, TEN_CENTIMETERS } from '@/features/map_planning/utils/Consta
* @param screenWidth current screen width
*/
export function calculateGridStep(screenWidth: number): number {
if (screenWidth > 50 * ONE_METER) {
if (screenWidth > 70 * ONE_METER) {
return 10 * ONE_METER;
}

if (screenWidth > 10 * ONE_METER) {
if (screenWidth > 5 * ONE_METER) {
return ONE_METER;
}

Expand Down

0 comments on commit cca7b0c

Please sign in to comment.