Open lizsugar opened 2 years ago
This is awesome! It solves one of my long standing challenges with my wall mounted tablets. Can't wait to see this merged!
PR submitted to maintained version of slider-button-card https://github.com/custom-cards/slider-button-card/pull/5
Previously, slider value was based on your absolute finger or mouse position within the bounds of the slider track. This resulted in a light at 10% suddenly shooting up to 90% because that's where your finger or mouse touched the slider and moved. Two changes are made in this PR:
All of this makes managing the slider much easier on small mobile or wall mounted screens, and when the desired values are right at the screen edge. I've also found it makes the web experience just that much nicer too.
This has been tested on mobile android app as well as the web version. With vertical and horizontal sliders. With all slider card types.