There is some component via vue js that makes me create this component that shows in the image below I am developing my site in PHP.
vue-slider-component can help you. It looks very versatile and with simple documentation.
You may have already used another, but just to stay logged in to someone you do not know, I recommend using Vuetify . It has complete documentation, is always up to date, is simple and great to work with.
In case of "Drag to fit" , there is a component in Vuetify documentation called Slider that it would solve.