Fix for slider moving on touch devices and NaN value as the result.