Skip to content

Commit

Permalink
Fix Color Source Bug on Saturation and Hue (#671)
Browse files Browse the repository at this point in the history
Co-authored-by: case <casandbe@amazon.com>
  • Loading branch information
casesandberg and case authored May 4, 2020
1 parent 5e7a346 commit 864c264
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/helpers/hue.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const calculateChange = (e, direction, hsl, container) => {
s: hsl.s,
l: hsl.l,
a: hsl.a,
source: 'rgb',
source: 'hsl',
}
}
} else {
Expand All @@ -43,7 +43,7 @@ export const calculateChange = (e, direction, hsl, container) => {
s: hsl.s,
l: hsl.l,
a: hsl.a,
source: 'rgb',
source: 'hsl',
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/saturation.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ export const calculateChange = (e, hsl, container) => {
s: saturation,
v: bright,
a: hsl.a,
source: 'rgb',
source: 'hsv',
}
}

0 comments on commit 864c264

Please sign in to comment.