Oh-slider does not update when dragging it outside the scale

Hi all,

I made a widget with the following inside:

          - component: f7-row
            config:
              class:
                - padding-top
                - padding-bottom
            slots:
              default:
                - component: f7-col
                  config:
                    width: 35
                    visible: =Number.parseFloat(items[props.item+'Mode'].state) > 1.5
                  slots:
                    default:
                      - component: oh-link
                        config:
                          action: analyzer
                          actionAnalyzerItems: =[props.item + 'ColorRed']
                          item: =props.item + 'ColorRed'
                          color: black
                          iconSize: 24
                          text: = "Red  "+items[props.item + 'ColorRed'].state
                          visible: =Number.parseFloat(items[props.item+'Mode'].state) > 1.5
                - component: f7-col
                  config:
                    width: 65
                  slots:
                    default:
                      - component: oh-slider
                        config:
                          item: =props.item + 'ColorRed'
                          releaseOnly: true
                          scale: true
                          min: 0
                          max: 255
                          visible: =Number.parseFloat(items[props.item+'Mode'].state) > 1.5

If I click on the slider it will send the command, if i actually slide it, then it doesnt always send a command when realeasing, especially when i drag it to the end point with the mouse cursor outside the actual scale (which i tend to do to make sure its at max or min). Changing “releaseOnly” to false does not really help.

image

Does anybody have any idea? Or is this a known issue?

Thanks,

Ramon

This certainly sounds like it could be an error. What version of OH are you using? Do you see this same pattern using different browsers and apps?

Its 3.4.2 and its the same with Edge and Firefox. So i dont remember it being like this in the previous release I had on. I guess it started after upgrading i did month or so ago. I do not know exactly what the previous version was. 3.something.

Thanks,

Ramon

The slider code hasn’t changed in a year. However, although I don’t recall having run across this before, I can replicate the issue you’re seeing on 4.0M2. I don’t know if this is a new problem or not, or even if it’s OH or f7, but it’s probably worth putting an issue on the ui repo just so that devs are aware that the issue exists.

Alright, thank you for reproducing it, then I at least know its not my setup!
Where do I report it?

Thank you,

Ramon

1 Like

Done!

https://github.com/openhab/openhab-webui/issues/1866

Thank you

1 Like