[BasicUI] Consider item state for the color picker (#1547)
It was not working if you added a label pattern to your color item Related to discussion in #427 Signed-off-by: Laurent Garnier <lg.hc@free.fr>pull/1546/head^2
parent
f1db954f76
commit
23fc572a62
|
@ -1332,9 +1332,9 @@
|
||||||
_t.longPress = false;
|
_t.longPress = false;
|
||||||
_t.pressed = false;
|
_t.pressed = false;
|
||||||
|
|
||||||
_t.setValue = function(value) {
|
_t.setValue = function(value, itemState) {
|
||||||
var
|
var
|
||||||
t = value.split(","),
|
t = itemState.split(","),
|
||||||
hsv = {
|
hsv = {
|
||||||
h: t[0] / 360,
|
h: t[0] / 360,
|
||||||
s: t[1] / 100,
|
s: t[1] / 100,
|
||||||
|
|
Loading…
Reference in New Issue