From e39fcb3bec5e97f205c581e5c0c641208f9280b3 Mon Sep 17 00:00:00 2001 From: guy Date: Fri, 5 Mar 2021 17:16:00 +0800 Subject: [PATCH] update --- src/case/colorchooser/farbtastic/farbtastic.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/case/colorchooser/farbtastic/farbtastic.js b/src/case/colorchooser/farbtastic/farbtastic.js index f8645d5d5..58eb563ca 100644 --- a/src/case/colorchooser/farbtastic/farbtastic.js +++ b/src/case/colorchooser/farbtastic/farbtastic.js @@ -179,8 +179,6 @@ BI.Farbtastic = BI.inherit(BI.BasicButton, { // Saturation/Luminance gradient this.colorWrapper.element.css("backgroundColor", this._pack(this._HSLToRGB([this.hsl[0], 1, 0.5]))); - - this.fireEvent(BI.Farbtastic.EVENT_CHANGE, this.getValue(), this); }, _absolutePosition: function (el) { @@ -257,6 +255,7 @@ BI.Farbtastic = BI.inherit(BI.BasicButton, { var lum = Math.max(0, Math.min(1, -(pos.y / this.constants.SQUARE) + .5)); this._setHSL([this.hsl[0], sat, lum]); } + this.fireEvent(BI.Farbtastic.EVENT_CHANGE, this.getValue(), this); }, doClick: function (event) {