diff --git a/CHANGELOG.md b/CHANGELOG.md index 736f6734..998c0f0a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - bug fixes - linkId not working between two encoder widgets + - fader: `gradient` breakpoints not positioned correctly - scripting - expose file browser (from the file widget) as a scripting function diff --git a/src/client/widgets/sliders/fader.js b/src/client/widgets/sliders/fader.js index 4ab29960..242ad3f0 100644 --- a/src/client/widgets/sliders/fader.js +++ b/src/client/widgets/sliders/fader.js @@ -137,7 +137,7 @@ class Fader extends Slider { (typeof colors === 'object' && Object.keys(colors).length > 1) ) { - var grad = this.ctx.createLinearGradient(0, this.getProp('horizontal') ? 0 : this.height, 0, this.getProp('horizontal') ? this.width : 0) + var grad = this.ctx.createLinearGradient(this.gaugePadding, this.getProp('horizontal') ? this.gaugePadding : this.height - this.gaugePadding, this.gaugePadding, this.getProp('horizontal') ? this.width - this.gaugePadding : this.gaugePadding) try { if (Array.isArray(colors)) {