From 336ff3681e2a79a96ac8a71019f44992605b228a Mon Sep 17 00:00:00 2001 From: OVSharova Date: Mon, 28 Feb 2022 15:56:05 +0300 Subject: [PATCH] fix bug delay --- apps/presentationeditor/main/app/view/TextArtSettings.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apps/presentationeditor/main/app/view/TextArtSettings.js b/apps/presentationeditor/main/app/view/TextArtSettings.js index 7e33520129..848e77b941 100644 --- a/apps/presentationeditor/main/app/view/TextArtSettings.js +++ b/apps/presentationeditor/main/app/view/TextArtSettings.js @@ -533,6 +533,14 @@ define([ this.api.setEndPointHistory(); this._gradientApplyFunc(); } + + var arrGrCollors=[]; + var scale=(this.GradFillType == Asc.c_oAscFillGradType.GRAD_LINEAR)?1:0.7; + for (var index=0; index < slider.thumbs.length; index++) { + arrGrCollors.push(slider.getColorValue(index)+ ' '+ slider.getValue(index)*scale +'%'); + } + + this.btnDirectionRedraw(slider, arrGrCollors.join(', ')); this._sendUndoPoint = true; },