add latest bug fixes to headless js bundle

This commit is contained in:
jean-emmanuel 2016-04-21 00:14:54 +02:00
parent dcb6a7dca0
commit 9361dcb8ef
3 changed files with 12 additions and 5 deletions

View file

@ -1,9 +1,15 @@
# Changelog
## 0.4.8
- bug fixes
- regression preventing newly created widgets from using the pointer's coordinates as position
- add 0.4.7's fix to headless mode
## 0.4.7
- bug fixes
- regression causing widgets with `preArgs` to not receive osc correctly
- regression causing widgets with `preArgs` to not receive osc correctly
## 0.4.6

View file

@ -111,8 +111,8 @@ var init = function(){
data.widgets = data.widgets || []
var newData = {type:widgetType}
if (!target.attr('data-tab')) {
newData.top = e.offsetY
newData.left= e.offsetX
newData.top = d.offsetY
newData.left= d.offsetX
}
data.widgets.push(newData)
updateDom(container,data)

View file

@ -267,6 +267,7 @@ module.exports = {
if (WIDGETS_BY_PATH[ref]) {
pathref = ref
args = data.args.slice(i,data.args.length)
args = args.length==1?args[0]:args
continue
}
}
@ -1005,8 +1006,8 @@ var init = function(){
data.widgets = data.widgets || []
var newData = {type:widgetType}
if (!target.attr('data-tab')) {
newData.top = e.offsetY
newData.left= e.offsetX
newData.top = d.offsetY
newData.left= d.offsetX
}
data.widgets.push(newData)
updateDom(container,data)