From c6c7278b0e0d56ed53281cc16d4a726565eef79f Mon Sep 17 00:00:00 2001 From: Aristeides Stathopoulos Date: Tue, 18 Jul 2017 15:41:54 +0300 Subject: [PATCH] lower timeouts for color controls --- controls/color/color.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controls/color/color.js b/controls/color/color.js index 60d754ab6..93d460316 100644 --- a/controls/color/color.js +++ b/controls/color/color.js @@ -33,7 +33,7 @@ wp.customize.controlConstructor['kirki-color'] = wp.customize.Control.extend({ clear.click( function() { control.setting.set( '' ); }); - }, 500 ); + }, 200 ); // Saves our settings to the WP API picker.wpColorPicker({ @@ -42,7 +42,7 @@ wp.customize.controlConstructor['kirki-color'] = wp.customize.Control.extend({ // Small hack: the picker needs a small delay setTimeout( function() { control.setting.set( picker.val() ); - }, 100 ); + }, 20 ); } });