Skip to content

Commit f747b5f

Browse files
authored
Update article.md
1 parent 016b25d commit f747b5f

File tree

1 file changed

+2
-1
lines changed
  • 2-ui/3-event-details/4-mouse-drag-and-drop

1 file changed

+2
-1
lines changed

2-ui/3-event-details/4-mouse-drag-and-drop/article.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ ball.onmousedown = function(event) {
2828
ball.style.position = 'absolute';
2929
ball.style.zIndex = 1000;
3030

31-
// перемістимо в body, щоб м’яч був точно не всередині position: relative
31+
// перемістимо його з будь-яких поточних батьків безпосередньо в body
32+
// щоб розташувати його відносно body
3233
document.body.append(ball);
3334

3435
// центруємо м’яч за координатами (pageX, pageY)

0 commit comments

Comments
 (0)