Skip to content

Commit 6a1cccf

Browse files
authored
Some punctuation & sense ?
1 parent 4ffbb3b commit 6a1cccf

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ Drag'n'Drop is a great interface solution. Taking something, dragging and droppi
44

55
In the modern HTML standard there's a [section about Drag Events](https://html.spec.whatwg.org/multipage/interaction.html#dnd).
66

7-
They are interesting, because they allow to solve simple tasks easily, and also allow to handle drag'n'drop of "external" files into the browser. So we can take a file in the OS file-manager and drop it into the browser window. Then JavaScript gains access to its contents.
7+
They are interesting because they allow to solve simple tasks easily, and also allow to handle drag'n'drop of "external" files into the browser. So we can take a file in the OS file-manager and drop it into the browser window. Then JavaScript gains access to its contents.
88

9-
But native Drag Events also have limitations. For instance, we can limit dragging by a certain area. Also we can't make it "horizontal" or "vertical" only. There are other drag'n'drop tasks that can't be implemented using that API.
9+
But native Drag Events also have limitations. For instance, we can't limit dragging by a certain area. Also we can't make it "horizontal" or "vertical" only. There are other drag'n'drop tasks that can't be implemented using that API.
1010

1111
So here we'll see how to implement Drag'n'Drop using mouse events. Not that hard either.
1212

0 commit comments

Comments
 (0)