We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0cf28b commit e28b4c7Copy full SHA for e28b4c7
2-ui/3-event-details/4-mouse-drag-and-drop/article.md
@@ -29,6 +29,8 @@ ball.onmousedown = function(event) { // (1) start the process
29
// (2) prepare to moving: make absolute and on top by z-index
30
ball.style.position = 'absolute';
31
ball.style.zIndex = 1000;
32
+ // move it out of any current parents directly into body
33
+ // to make it positioned relative to the body
34
document.body.append(ball);
35
// ...and put that absolutely positioned ball under the cursor
36
0 commit comments