diff --git a/CHANGELOG.md b/CHANGELOG.md index 459c7972..a5d4b64b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ - widgets - fader: display pips to `compact` mode when `range` has multiple breakpoints - pads: display pips when `range` has multiple breakpoints - - multixy: style update (stroked dots, bold number font); `snap` option added. + - multixy: style update (stroked dots, bold number font); `snap` option added; points are automtically assigned to touches as they come; fix `logScale(X|Y)` options. ## 0.11.1 diff --git a/resources/docs/user-guide/widgets-specifics/pads.md b/resources/docs/user-guide/widgets-specifics/pads.md index f79dc050..535d2efb 100644 --- a/resources/docs/user-guide/widgets-specifics/pads.md +++ b/resources/docs/user-guide/widgets-specifics/pads.md @@ -105,7 +105,7 @@ Pads are multidimensional widgets that output multiple values. #### `snap` - type: `boolean` - default: `false` -- usage: by default, the points must be touched directy to be dragged; if set to `true`, touching anywhere on the widget's surface will assign the points to the touching fingers one by one. +- usage: by default, the points are dragged from their initial position; if set to `true`, touching anywhere on the widget's surface will make them snap to the touching coordinates (one per touch). ---- diff --git a/src/browser/js/app/widgets/pads/multixy.js b/src/browser/js/app/widgets/pads/multixy.js index 1fd773c5..784591df 100644 --- a/src/browser/js/app/widgets/pads/multixy.js +++ b/src/browser/js/app/widgets/pads/multixy.js @@ -10,7 +10,7 @@ module.exports.options = { separator1:'multi xy', points: 2, - pointSize: 15, + pointSize: 20, snap:false, separator2:'style', @@ -65,7 +65,8 @@ var MultiXy = module.exports.MultiXy = function(widgetData) { rangeX:widgetData.rangeX, rangeY:widgetData.rangeY, precision:widgetData.precision, - logScale:widgetData.logScaleY + logScaleX:widgetData.logScaleX, + logScaleY:widgetData.logScaleY }) this.pads[i].sendValue = ()=>{} this.pads[i].draw = ()=>{} @@ -74,7 +75,6 @@ var MultiXy = module.exports.MultiXy = function(widgetData) { this.handles[i] = $(`