Skip to content

Commit

Permalink
Fix camelCase
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy authored Oct 17, 2023
1 parent 5a7cfcb commit 008ed25
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ function insertStop(stops, newPosition) {
const following = stops[followingIndex];

// Find the ratio the new stop is from the preceding stop
const diffNewTopreceding = newPosition - preceding.position;
const diffFollowingTopreceding = following.position - preceding.position;
const ratio = diffNewTopreceding / diffFollowingTopreceding;
const diffNewToPreceding = newPosition - preceding.position;
const diffFollowingToPreceding = following.position - preceding.position;
const ratio = diffNewToPreceding / diffFollowingToPreceding;

// Mix the two colors by that amount:
const {
Expand Down

0 comments on commit 008ed25

Please sign in to comment.