From a9756766a02800365dd005e4013ead005aa44a2c Mon Sep 17 00:00:00 2001 From: simmayor Date: Tue, 11 Dec 2018 22:02:30 -0500 Subject: [PATCH] Grammar --- 2-ui/3-event-details/4-mouse-drag-and-drop/article.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/2-ui/3-event-details/4-mouse-drag-and-drop/article.md b/2-ui/3-event-details/4-mouse-drag-and-drop/article.md index e8126f5b..6390b392 100644 --- a/2-ui/3-event-details/4-mouse-drag-and-drop/article.md +++ b/2-ui/3-event-details/4-mouse-drag-and-drop/article.md @@ -15,7 +15,7 @@ So here we'll see how to implement Drag'n'Drop using mouse events. Not that hard The basic Drag'n'Drop algorithm looks like this: 1. Catch `mousedown` on a draggable element. -2. Prepare the element to moving (maybe create a copy of it or whatever). +2. Prepare the element for moving (maybe create a copy of it or whatever). 3. Then on `mousemove` move it by changing `left/top` and `position:absolute`. 4. On `mouseup` (button release) -- perform all actions related to a finished Drag'n'Drop. @@ -58,7 +58,7 @@ ball.onmousedown = function(event) { // (1) start the process }; ``` -If we run the code, we can notice something strange. On the beginning of the drag'n'drop, the ball "forks": we start to dragging it's "clone". +If we run the code, we can notice something strange. On the beginning of the drag'n'drop, the ball "forks": we start dragging its "clone". ```online Here's an example in action: @@ -178,7 +178,7 @@ In action (inside `