V
V
Vasily Mazhekin2018-11-16 17:50:30
JavaScript
Vasily Mazhekin, 2018-11-16 17:50:30

How to quickly write a range slider?

I need to write a range slider in pure javascript. Like this 5beedfa8165fd538917241.jpeg
Wrote in a hurry partially took the code from here https://www.w3schools.com/howto/howto_js_draggable.asp
But something didn’t work out right away.
1) Clicks don't work.
2) is not draggable in mobile versions.
3) Minor but labor-intensive shortcomings of the type, when the mouse pointer goes beyond the borders, the capture of the circle is lost, a trifle but not beautiful.
Who can suggest some kind of isolated small plug-in without extraneous libraries, so that you can make this control qualitatively?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Exploding, 2018-11-16
@mazhekin

We take input type='range' and style it. Will it go?

R
r_mustang, 2018-11-16
@r_mustang

first line in google?
msbrime.github.io/RangeSlider

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question