You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/CHANGES.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ Change log
5
5
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
6
6
**Table of Contents***generated with [DocToc](http://doctoc.herokuapp.com/)*
7
7
8
-
-[3.3.0-dev](#330-dev)
8
+
-[4.0.0](#400)
9
9
-[3.3.0 (2021-2-2)](#330-2021-2-2)
10
10
-[3.2.0 (2021-1-25)](#320-2021-1-25)
11
11
-[3.1.5 (2021-1-23)](#315-2021-1-23)
@@ -48,9 +48,9 @@ Change log
48
48
-[v0.1.0 (2014-11-18)](#v010-2014-11-18)
49
49
50
50
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
51
-
## 3.3.0-dev
51
+
## 4.0.0
52
52
53
-
- fix [#149](https://github.com/gridstack/gridstack.js/issues/149)[#1094](https://github.com/gridstack/gridstack.js/issues/1094)[#1605](https://github.com/gridstack/gridstack.js/issues/1605) re-write of the **collision code - fixing 6 years old most requested request**
53
+
- fix [#149](https://github.com/gridstack/gridstack.js/issues/149)[#1094](https://github.com/gridstack/gridstack.js/issues/1094)[#1605](https://github.com/gridstack/gridstack.js/issues/1605)[#1534](https://github.com/gridstack/gridstack.js/issues/1534)re-write of the **collision code - fixing 6 years old most requested request**
54
54
1. you can now swap items of the same size (vertical/horizontal) when grid is full, and is the default in `float:false` (top gravity) as it feels more natural. Could add Alt key for swap vs push behavior later.
55
55
2. Dragging up and down now behave the same (used to require push WAY down past to swap/append). Also much more efficient collision code.
56
56
3. handle mid point of dragged over items (>50%) rather than just a new row/column and check for the most covered item when multiple collide.
@@ -59,6 +59,7 @@ Change log
59
59
1. we now remove item when cursor leaves (`acceptWidgets` case using `dropout` event) or shape is outside (re-using same method) and re-insert on cursor enter (since we only get `dropover` event). Should **not be possible to have 2 placeholders** which confuses the grids.
60
60
2. major re-write and cleanup of the drag in/out. Vars have been renamed and fully documented as I couldn't understand the legacy buggy code.
61
61
3. removed any over trash delay feedback as I don't see the point and could introduce race conditions.
62
+
62
63
- fix [1617](https://github.com/gridstack/gridstack.js/issues/1617) FireFox DOM order issue. Thanks [@marcel-necker](https://github.com/marcel-necker)
63
64
- fix changing column # `column(n)` now resizes `cellHeight:'auto'` to keep square
64
65
- add [1616](https://github.com/gridstack/gridstack.js/pull/1616)`drag | resize` events while dragging. Thanks [@MrCorba](https://github.com/MrCorba)
Copy file name to clipboardExpand all lines: package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "gridstack",
3
-
"version": "3.3.0-dev",
3
+
"version": "4.0.0",
4
4
"description": "TypeScript/JS lib for dashboard layout and creation, no external dependencies, with many wrappers (React, Angular, Vue, Ember, knockout...)",
node._moving=(event.type==='dragstart');// 'dropover' are not initially moving so they can go exactly where they enter (will push stuff out of the way)
0 commit comments