ovidiuch / dragdealer

Drag-based vanilla JS component
http://ovidiuch.github.io/dragdealer
MIT License
1.05k stars 149 forks source link

Change color of the 'handle red-bar' depending on the value? #120

Open Exposian opened 7 years ago

Exposian commented 7 years ago

Hi, How would I change the class values of 'red-bar' depending on the value/or where the bar is on the axis? Regards, Philippe

pankamilr commented 7 years ago

Hi @Exposian if you still want to set a class to the "red-bar" you can do it within dragStopCallback function. It has a x and y parameters and in function body you can manipulate elements while the x value changed. Hope that helps.