sync/link event delegation fix (don't sync yourself, widget!) & xy logscaling fix
This commit is contained in:
parent
b1886a101c
commit
d98c0588bb
2 changed files with 3 additions and 3 deletions
|
|
@ -63,7 +63,7 @@ module.exports.sync = function() {
|
|||
if (WIDGETS[id] && WIDGETS[id].length>1) {
|
||||
var v = widget.getValue()
|
||||
for (i in WIDGETS[id]) {
|
||||
if (WIDGETS[id]!=widget) {
|
||||
if (WIDGETS[id][i]!=widget) {
|
||||
WIDGETS[id][i].setValue(v,false,false)
|
||||
}
|
||||
}
|
||||
|
|
@ -73,7 +73,7 @@ module.exports.sync = function() {
|
|||
if (WIDGETS_LINKED[id] && WIDGETS_LINKED[id].length>1) {
|
||||
var v = widget.getValue()
|
||||
for (i in WIDGETS_LINKED[id]) {
|
||||
if (WIDGETS_LINKED[id]!=widget) {
|
||||
if (WIDGETS_LINKED[id][i]!=widget) {
|
||||
WIDGETS_LINKED[id][i].setValue(v,true,false)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@ module.exports.create = function(widgetData,container) {
|
|||
}
|
||||
|
||||
var w = mapToScale(v[0],[range.x.min,range.x.max],[0,100],widgetData.precision,widgetData.logScaleX,true)
|
||||
h = mapToScale(v[1],[range.y.min,range.y.max],[0,100],widgetData.precision,widgetData.logScaleX,false),
|
||||
h = mapToScale(v[1],[range.y.min,range.y.max],[0,100],widgetData.precision,widgetData.logScaleY,true),
|
||||
|
||||
|
||||
widget.updateUi(w,h)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue