editor: "wrap" deleting the widget just before the one being wrapped

This commit is contained in:
jean-emmanuel 2018-04-16 18:58:21 +02:00
parent b141546afd
commit 568c4cab34
2 changed files with 2 additions and 1 deletions

View file

@ -3,6 +3,7 @@
## 0.29.1
- bug fixes
- editor: "wrap" deleting the widget just before the one being wrapped
- regression breaking traversing gestures and high precision gestures (0.29.0)
- server
- allow sending osc to broadcast ip addresses

View file

@ -229,7 +229,7 @@ var handleClick = function(event) {
parent.props.widgets.splice(i,1)
}
parent.props.widgets = parent.props.widgets.slice(0, i - 1).concat(wrap, parent.props.widgets.slice(i, parent.props.widgets.length))
parent.props.widgets = parent.props.widgets.slice(0, i).concat(wrap, parent.props.widgets.slice(i, parent.props.widgets.length))
editor.select(updateWidget(parent, {preventSelect: true}))
}