Skip to content

Commit

Permalink
Fix picks up the color bug casesandberg#620
Browse files Browse the repository at this point in the history
  • Loading branch information
kgapich committed Jul 11, 2019
1 parent 0657c78 commit 19d95cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/helpers/saturation.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ export const calculateChange = (e, hsl, container) => {
top = containerHeight
}

const saturation = (left * 100) / containerWidth
const bright = -((top * 100) / containerHeight) + 100
const saturation = left / containerWidth;
const bright = 1 - (top / containerHeight);

return {
h: hsl.h,
Expand Down

0 comments on commit 19d95cd

Please sign in to comment.