Skip to content

Commit 9ce977a

Browse files
Merge branch 'javascript-tutorial:master' into master
2 parents fe628c5 + 48e1ab8 commit 9ce977a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

2-ui/3-event-details/6-pointer-events/slider.view/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
function onThumbMove(event) {
3232
let newLeft = event.clientX - shiftX - slider.getBoundingClientRect().left;
3333

34-
// if the pointer is out of slider => adjust left to be within the bounaries
34+
// if the pointer is out of slider => adjust left to be within the boundaries
3535
if (newLeft < 0) {
3636
newLeft = 0;
3737
}

2-ui/3-event-details/6-pointer-events/slider.view/style.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
}
99

1010
.thumb {
11+
touch-action: none;
1112
width: 10px;
1213
height: 25px;
1314
border-radius: 3px;

0 commit comments

Comments
 (0)