Update index.html
This commit is contained in:
parent
1808fe380e
commit
4a7fe13942
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue