s00500 / ESPUI

A simple web user interface library for ESP32 and ESP8266
https://valencia.lbsfilm.at/midterm-presentation/
Other
923 stars 174 forks source link

Logarithmic sliders #201

Open mabartibin opened 2 years ago

mabartibin commented 2 years ago

Describe the solution you'd like I’d like a new control type LogSlider, or alternatively a flag on the existing slider, to make the scale logarithmic. E.g. on a 1–100 slider, 10 is in the middle.

Describe alternatives you've considered Super flexible solution: allow to provide code that translates the slider position (0.0–1.0) to a value. That would allow the slider value label to include units and e.g. go from 1Hz → 1kHz → 1MHz

I suppose the code would have to be in JS though.