Skip to content

3.2.2 - Slider Improvements

Compare
Choose a tag to compare
@Nerwyn Nerwyn released this 26 Mar 14:32
· 884 commits to main since this release

Changes in 3.2.2

  • value_attribute can now use attributes that are arrays, like hs_color[0] #20.
  • Service call data can now include VALUE and templates in array data #20.

Slider Tooltip #15

Sliders now show a tooltip with the current value when held down on, similar to vanilla tile sliders. You can disable this by setting tooltip to false. If unit_of_measurement is provided, it will also appear in the tooltip.

image

The slider has also been refactored so it should perform a bit better, and shouldn't prematurely update it's value right after it sends an action, causing it to rubber band between the old and new values. The logic for turning the slider on and off has also been improved so it should update faster.

Label Improvements

If you include VALUE in the slider label, it will also now update as you move the slider instead of when you release it. You can now also use VALUE and UNIT inside of label templates for more control of how they appear. If you include VALUE in a label outside of a template it will still be replaced by the current feature value, and if you also define unit_of_measurement it will now appear right after VALUE rather than at the end of the label.

Other Changes

  • Firefox flat thumb slider style fixes.

Patch Version Changes

  • Mouse and touch event handlers are now always added to the element to fix support on environments such as the MacOS Home Assistant app (which says it has touch event handlers even if the devices does not have a touch screen) and tablets with desktop browsers.
  • Prevent context menu from appearing when using touch hold actions on desktop browsers.
  • Prevent touchpad center action from firing at the end of a multi touch action.
  • value_attribute can now use attributes that are arrays, like hs_color[0] #20.
  • Service call data can now include VALUE and templates in array data #20.

Full Changelog: 3.1.8...3.2.2