Merge pull request #2689 from joaquinelio/patch-8

slider not working on movile
This commit is contained in:
Ilya Kantor 2021-08-08 11:54:12 +03:00 committed by GitHub
commit bc08fd1b32
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,7 +31,7 @@
function onThumbMove(event) {
let newLeft = event.clientX - shiftX - slider.getBoundingClientRect().left;
// if the pointer is out of slider => adjust left to be within the bounaries
// if the pointer is out of slider => adjust left to be within the boundaries
if (newLeft < 0) {
newLeft = 0;
}