Skip to content

Commit d3a990e

Browse files
committed
Fix incorrect function use
Change setHexa to use updateHSX instead of RGBtoHSV as wasn't updating properly when format was set to HSL
1 parent e39d727 commit d3a990e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/color-picker/script.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ var UIColorPicker = (function UIColorPicker() {
193193
this.b = parseInt(value.substr(4, 2), 16);
194194

195195
this.alpha = 1;
196-
this.RGBtoHSV();
196+
this.updateHSX();
197197
};
198198

199199
/*========== Conversion Methods ==========*/

0 commit comments

Comments
 (0)