I'm playing with the slider for the first time, and I have a small question.
I'm using this:
slider.on "change:value", -> layerB.visible = true
To turn on layerB whenever the slider's value is changing (when i'm dragging the knob).
Is there a way to change layerB back when I stop dragging the knob?
Hi Kasper, you can use the DragStart and DragEnd events:
slider.knob.on Events.DragStart, -> layerB.visible = true
slider.knob.on Events.DragEnd, -> layerB.visible = false
Really? Smaaart. Thanks Randi