Skip to content

Commit 21bd6fc

Browse files
fix unresponsive hue select when black
Setting the R, G, B sliders to 0, 0, 0 (in that order) then trying to adjust the hue failed. It appears to be a gamut issue (?) closes #12
1 parent 53b65de commit 21bd6fc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib/ColorSelect.svelte

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@
8484
function update_h(x: number, y: number) {
8585
let h = clamp(y / picker_size)
8686
color.h = h * 360
87+
color.s = Math.max(color.s, 0.00001)
88+
color.v = Math.max(color.v, 0.00001)
8789
8890
update_input()
8991
}

0 commit comments

Comments
 (0)