You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All displays fine, but using 1 as a value in the swatches array, breaks the functionality of the activeOffset() function that determines to which swatch the active class will be added:
Problem seems to be that in case I select the swatch with luminosity 1, the value of this.colors.hsl.s becomes 0 and therefore activeOffset() returns 0 (thus setting the active class to the wrong swatch).
Not sure why that if statement is there in activeOffset(), but removing it fixes this issue.
The text was updated successfully, but these errors were encountered:
As I suggested in #118 I am interested in adding luminosity values of 1 (white) and 0 (black) to the swatches array in
Slider.vue
, like this:All displays fine, but using
1
as a value in the swatches array, breaks the functionality of theactiveOffset()
function that determines to which swatch theactive
class will be added:Problem seems to be that in case I select the swatch with luminosity 1, the value of
this.colors.hsl.s
becomes 0 and thereforeactiveOffset()
returns 0 (thus setting the active class to the wrong swatch).Not sure why that if statement is there in
activeOffset()
, but removing it fixes this issue.The text was updated successfully, but these errors were encountered: