Skip to content

Commit 2397c96

Browse files
Regniseddolgachio
andauthored
Update 2-ui/2-events/01-introduction-browser-events/04-move-ball-field/solution.view/index.html
Co-authored-by: Stanislav <s.dolgachov@gmail.com>
1 parent e1ae78c commit 2397c96

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • 2-ui/2-events/01-introduction-browser-events/04-move-ball-field/solution.view

‎2-ui/2-events/01-introduction-browser-events/04-move-ball-field/solution.view/index.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
// координати поля щодо вікна браузера
4343
let fieldCoords = this.getBoundingClientRect();
4444

45-
// м’яч має абсолютне позиціювання (position:absolute), поле - відносне (position:relative)
45+
// м’яч має абсолютне позиціювання (position:absolute), поле -- відносне (position:relative)
4646
// таким чином, координати м’яча розраховуються щодо внутрішнього, верхнього лівого кута поля.
4747
let ballCoords = {
4848
top: event.clientY - fieldCoords.top - field.clientTop - ball.clientHeight / 2,

0 commit comments

Comments
 (0)