File tree Expand file tree Collapse file tree 6 files changed +13
-14
lines changed
Expand file tree Collapse file tree 6 files changed +13
-14
lines changed Original file line number Diff line number Diff line change 11Changelog
22================
33
4- ## Version 0.3.3 (2013-07-??) ##
4+ ## Version 0.3.4 (2013-10-08) ##
5+ * Fix Issue #13 : html5_dnd is incompatible with js-interop and the latest SDK
6+ * Remove dependencies on meta package
7+ * Add version constraints on dependencies
8+
9+ ## Version 0.3.3 (2013-07-09) ##
510* Support dragging of SVG elements (Issue #7 ). Dragging of SVG elements uses the
611 emulated mode in all browsers.
712* Add tests for dragging SVG elements.
Original file line number Diff line number Diff line change @@ -8,12 +8,10 @@ import 'dart:html';
88import 'dart:async' ;
99import 'dart:math' as math;
1010import 'dart:svg' as svg;
11- import 'package:meta/meta.dart' ;
1211import 'package:logging/logging.dart' ;
1312
1413import 'src/utils.dart' as utils;
1514
16- import 'src/sortable/sortable.dart' ;
1715export 'src/sortable/sortable.dart' ;
1816
1917part 'src/dnd/group.dart' ;
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ library html5_dnd.sortable;
66
77import 'dart:html' ;
88import 'dart:async' ;
9- import 'package:meta/meta.dart' ;
109import 'package:logging/logging.dart' ;
1110
1211import '../../html5_dnd.dart' ;
@@ -127,7 +126,6 @@ class SortableGroup extends DraggableGroup implements DropzoneGroup {
127126 /**
128127 * Installs sortable behaviour on [element] and registers it in this group.
129128 */
130- @override
131129 void install (Element element) {
132130 _logger.finest ('installing as sortable' );
133131 // Sortable elements are at the same time draggables (superclass) and dropzones.
@@ -232,15 +230,13 @@ class Position {
232230 parent.children.insert (index, element);
233231 }
234232
235- @override
236233 int get hashCode {
237234 int result = 17 ;
238235 result = 37 * result + parent.hashCode;
239236 result = 37 * result + index.hashCode;
240237 return result;
241238 }
242239
243- @override
244240 bool operator == (other) {
245241 if (identical (other, this )) return true ;
246242 return (other is Position
Original file line number Diff line number Diff line change @@ -31,7 +31,9 @@ int getElementIndexInParent(Element element) {
3131void clearTextSelections () {
3232 window.getSelection ().removeAllRanges ();
3333 var activeElement = document.activeElement;
34- if (activeElement is TextAreaElement || activeElement is InputElement ) {
34+ if (activeElement is TextAreaElement ) {
35+ activeElement.setSelectionRange (0 , 0 );
36+ } else if (activeElement is InputElement ) {
3537 activeElement.setSelectionRange (0 , 0 );
3638 }
3739}
Original file line number Diff line number Diff line change 11name : html5_dnd
2- version : 0.3.3
2+ version : 0.3.4
33author : Marco Jakob <majakob@gmx.ch>
44description : HTML5 Drag and Drop
55homepage : https://github.com/marcojakob/dart-html5-dnd
66documentation : http://edu.makery.ch/projects/dart-html5-drag-and-drop
77dependencies :
8- logging : any
9- meta : any
8+ logging : ' >=0.7.6'
109dev_dependencies :
11- browser : any
12- logging_handlers : any
10+ browser : ' >=0.7.6 '
11+ logging_handlers : ' >=0.5.0 '
Original file line number Diff line number Diff line change 44library svt_test;
55
66import 'dart:html' ;
7- import 'dart:svg' as svg;
87
98import 'package:logging_handlers/logging_handlers_shared.dart' ;
109import 'package:logging/logging.dart' ;
You can’t perform that action at this time.
0 commit comments