Fix for slider moving on touch devices and NaN value as the result.
Merge pull request #6 from nazar-pc/patch-1

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