The code has problems with large slider ranges and I don't have time to fix it right now (cherry picked from commit 0908c76a)