Refactor updateSlider to make isMoveEvent() unecessary