Skip to content

Commit a6715ed

Browse files
committed
ColorPicker - always set pixels
1 parent 422ddfd commit a6715ed

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

haxe/ui/components/ColorPicker.hx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,8 @@ private class HSVColorPickerImpl extends ColorPickerImpl {
253253
var requiresRedraw = true;
254254
if (_saturationValueGraphLastHue != null && _saturationValueGraphLastHue == _currentColorHSV.h) {
255255
requiresRedraw = false;
256+
// Sometimes html element image data "disappears" so we still need to set pixels
257+
saturationValueGraph.componentGraphics.setPixels(_saturationValueGraphBytes);
256258
}
257259

258260
//Seemingly breaks the color picker for no reason, commenting just in case.

0 commit comments

Comments
 (0)