JavaScript touch control slider