                        withRightViewBackgroundColor     : UIColor.magenta.withAlphaComponent(CMYK.magenta))
         }
         
-        slider.action = { [weak self] value in
+        slider.action = { [weak self] value,dragging in
             guard let `self` = self else { return }
             var CMYK = self.color.CMYK
             CMYK.magenta = CGFloat(value).clampedTo01
-            self.set(color:UIColor(CMYK:CMYK).withAlphaComponent(self.color.RGBAalpha), animated:false)
+            self.set(color:UIColor(CMYK:CMYK).withAlphaComponent(self.color.RGBAalpha), dragging:dragging, animated:false)
         }
         
         slider.actionOnLeftButton = { [weak self] slider in

                       withRightViewBackgroundColor     : UIColor(rgba:[1,0,0,RGBA.red]))
        }
        
        slider.action = { [weak slider, weak self] value in
            guard let `self` = self else { return }
            guard let `slider` = slider else { return }
            var RGBA = self.color.RGBA
            RGBA.red = CGFloat(value) / CGFloat(slider.slider.maximumValue)
            self.set(color:UIColor(RGBA:RGBA), animated:false)
        }
        
        slider.actionOnLeftButton = { [weak self] slider in

        picker.handlerForColor = { color in
            print("new color\(color)")
        }
        picker.set(color:UIColor(rgb:[0.64,0.13,0.78]), dragging:false, animated:true)
        WINDOW.rootViewController = vc
        WINDOW.makeKeyAndVisible()
    }
