changed() also fires when the slider rounds the value it shows, on focus too. Compare the rounded values, so keyboard and accessibility edits commit without focus and rounding does not.