The Best solution for me is to adjust min and max so that the displayed range is not to big, which makes sense anyway,
than the setRange function makes no problems.
When setting width to min 900px, the widget seems to function on touch devices.
But it makes no sense to have such big control on Phones, so I decided not to use this widget on touch devices.
It would be better to change range by touching the markers, like on desktop, I think that it would work better with smaller width.
Maybe you can think of that in future versions.