We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 016b25d commit f747b5fCopy full SHA for f747b5f
2-ui/3-event-details/4-mouse-drag-and-drop/article.md
@@ -28,7 +28,8 @@ ball.onmousedown = function(event) {
28
ball.style.position = 'absolute';
29
ball.style.zIndex = 1000;
30
31
- // перемістимо в body, щоб м’яч був точно не всередині position: relative
+ // перемістимо його з будь-яких поточних батьків безпосередньо в body
32
+ // щоб розташувати його відносно body
33
document.body.append(ball);
34
35
// центруємо м’яч за координатами (pageX, pageY)
0 commit comments