ui.slider $prepareValue called when it shouldn't?

Self-explanatory reproduction: https://snippet.webix.com/2i3ynuhd

I expect that when I drag the first slider again, the second one should not be updated in any way.

Hello @dandv,

I expect that when I drag the first slider again, the second one should not be updated in any way.

I’m afraid that this is not a bug, but more of a feature. Here is why this is happening:

Controls (such as Slider in this case) and their containers (Form, Toolbar) use the .focus() method that applies the real focus and hence, triggers the UIManager logic. UIManager calls the applyChanges() method, which triggers upon the focus change, and this method then in turn calls the setValue() method (which calls the $prepareValue function).

You can try changing the focus between the controls in this example and see how the changes are being applied upon every focus change.