Skip to content

Commit ef0bd68

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 2397c96 commit ef0bd68

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
@@ -43,7 +43,7 @@
4343
let fieldCoords = this.getBoundingClientRect();
4444

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

0 commit comments

Comments
 (0)