Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
theosanderson committed Feb 16, 2023
1 parent 65699b6 commit 1374ff2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ whereMouseCurrentlyIs,setWhereMouseCurrentlyIs}) => {
let height = 70 + featureBlocks.length * 20;
const approxNumTicks = Math.ceil(width / 60); // One tick every 60 pixels
let tickInterval = Math.ceil(rowSequence.length / approxNumTicks);
const options = [1, 2, 5, 10, 20, 50, 100, 200, 500, 1000, 2000, 5000, 10000, 20000, 50000, 100000, 200000, 500000, 1000000, 2000000, 5000000, 10000000];
const options = [ 5, 10, 20, 50, 100, 200, 500, 1000, 2000, 5000, 10000, 20000, 50000, 100000, 200000, 500000, 1000000, 2000000, 5000000, 10000000];
// find nearest option to tickInterval
tickInterval = options.reduce((prev, curr) => (Math.abs(curr - tickInterval) < Math.abs(prev - tickInterval) ? curr : prev));
const modulus = rowStart % tickInterval;
Expand Down

1 comment on commit 1374ff2

@vercel
Copy link

@vercel vercel bot commented on 1374ff2 Feb 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.