Update index.html

This commit is contained in:
joaquinelio 2021-08-08 03:34:22 -03:00 committed by GitHub
parent 1808fe380e
commit 4a7fe13942
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,7 +31,7 @@
function onThumbMove(event) { function onThumbMove(event) {
let newLeft = event.clientX - shiftX - slider.getBoundingClientRect().left; 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) { if (newLeft < 0) {
newLeft = 0; newLeft = 0;
} }