The spinner was too small which caused the width of the spinner to dynamically change, based on what value the spinner had. So when changing the slider value, the slider would sometimes jump, thus changing the slider value unwanted.