From e25bed6c875c6d8399b620b7200ab7c56c7edaf9 Mon Sep 17 00:00:00 2001 From: case Date: Sat, 11 Jan 2020 12:15:03 -0800 Subject: [PATCH] Fix Color Source Bug on Saturation and Hue --- src/helpers/hue.js | 4 ++-- src/helpers/saturation.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/helpers/hue.js b/src/helpers/hue.js index 8cd6d3f9..fd94637d 100644 --- a/src/helpers/hue.js +++ b/src/helpers/hue.js @@ -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 { @@ -43,7 +43,7 @@ export const calculateChange = (e, direction, hsl, container) => { s: hsl.s, l: hsl.l, a: hsl.a, - source: 'rgb', + source: 'hsl', } } } diff --git a/src/helpers/saturation.js b/src/helpers/saturation.js index 261a3c60..922aec33 100644 --- a/src/helpers/saturation.js +++ b/src/helpers/saturation.js @@ -25,6 +25,6 @@ export const calculateChange = (e, hsl, container) => { s: saturation, v: bright, a: hsl.a, - source: 'rgb', + source: 'hsv', } }