Skip to content

Commit 90afe50

Browse files
committed
Prepare release of new version.
1 parent e7ba699 commit 90afe50

File tree

2 files changed

+28
-16
lines changed

2 files changed

+28
-16
lines changed

CHANGELOG.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,20 @@ Changelog
1818
* Fix Issue #6: Bug in Firefox when dragging over nested elements
1919
* Fix Issue #1: overClass (.dnd-over) stays after drag ended
2020
* Fix Issue #4: Support any HTML Element as drag image
21-
* Fix Issue #5: Always use Drag Image Polyfill for IE9 drags
21+
* Fix Issue #5: Always use Drag Image Polyfill for IE9 drags
22+
23+
## Version 0.3.0 (2013-06-25) ##
24+
* Completely emulating drag and drop in IE9 and partly in IE10 (when custom drag
25+
images are used):
26+
* The workaround with calling dragDrop() on IE did not work
27+
reliably and was slow. Also, we could not have the drag image under the
28+
mouse cursor as events would not be forwarded to element underneath.
29+
* No javascript file is needed any more and the dependency on js-interop
30+
has been removed.
31+
* Emulation works by listening to mouseDown, mouseUp and mouseMove events
32+
and translating them to the HTML5 dragStart, drag, dragEnd, dragEnter,
33+
dragOver, dragLeave and drop events.
34+
* More stable handling of nested elements. Instead of keeping track of
35+
dragOverElements in a list, the related target of the event is used to
36+
determine if it is an event that happened on the main element or bubbled
37+
up from child elements.

README.md

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
HTML5 Drag and Drop for Dart
22
================
33

4-
Helper library to simplify **Native HTML5 Drag and Drop** in Dart.
4+
Helper library to simplify **HTML5 Drag and Drop** in Dart.
55

66
## Features ##
77
* Make any HTML Element `draggable`.
88
* Create `dropzone`s and connect them with `draggable`s.
9-
* `Sortable` (similar to jQuery UI Sortable).
10-
* Uses fast native HTML5 Drag and Drop of the browser.
9+
* Rearrange elements with `sortable` (similar to jQuery UI Sortable).
1110
* Same functionality and API for IE9+, Firefox, Chrome and Safari.
11+
* Uses fast native HTML5 Drag and Drop of the browser whenever possible.
12+
* For browsers that do not support some features, the behaviour is emulated.
13+
This is the case for IE9 and partly for IE10 (when custom drag images are
14+
used).
1215

1316
## Demo ##
1417
See [HTML5 Drag and Drop in action](http://edu.makery.ch/projects/dart-html5-drag-and-drop) (with code examples).
@@ -24,17 +27,9 @@ Add the folowing to your **pubspec.yaml** and run **pub install**
2427
html5_dnd: any
2528
```
2629

27-
### 2. Add Polyfill JavaScript ###
28-
To make HTML5 Drag and Drop work in Internet Explorer include the following
29-
JavaScript file inside the `<head>` of your application's HTML like so:
30-
```html
31-
<script type="text/javascript" src="packages/html5_dnd/dnd.polyfill.js"></script>
32-
```
33-
34-
### 3. Import ###
30+
### 2. Import ###
3531
Import the `html5_dnd` library in your Dart code. If your using the Sortable
36-
functionality, also
37-
add `html5_sortable`.
32+
functionality, also add `html5_sortable`.
3833

3934
```dart
4035
import 'package:html5_dnd/html5_dnd.dart';
@@ -43,9 +38,10 @@ import 'package:html5_dnd/html5_sortable.dart';
4338
// ...
4439
```
4540

46-
### 4. Use it ###
41+
### 3. Use it ###
4742
See the demo page above or the `example` directory to see how to use it. There
48-
are also plenty of Dart Doc comments in the code for some additional details.
43+
are also plenty of comments in the code if you're interested in some finer
44+
details.
4945

5046

5147
## Thanks and Contributions ##

0 commit comments

Comments
 (0)