From 611daf735a1c32c24a8aa80f6030a053f816acb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=B6nig?= Date: Wed, 8 Nov 2023 22:06:14 +0100 Subject: [PATCH] Shorten animation delay MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Christian König --- scripts/pi-hole/js/index.js | 4 ++-- scripts/pi-hole/js/settings-system.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/pi-hole/js/index.js b/scripts/pi-hole/js/index.js index 6c364896..8844f5ad 100644 --- a/scripts/pi-hole/js/index.js +++ b/scripts/pi-hole/js/index.js @@ -14,8 +14,8 @@ var queryTypePieChart, forwardDestinationPieChart; // Register the ChartDeferred plugin to all charts: Chart.register(ChartDeferred); Chart.defaults.set("plugins.deferred", { - yOffset: "50%", - delay: 500, + yOffset: "20%", + delay: 300, }); // Functions to update data in page diff --git a/scripts/pi-hole/js/settings-system.js b/scripts/pi-hole/js/settings-system.js index 307ea3a3..4f0e280a 100644 --- a/scripts/pi-hole/js/settings-system.js +++ b/scripts/pi-hole/js/settings-system.js @@ -15,8 +15,8 @@ var cacheSize = 0, // Register the ChartDeferred plugin to all charts: Chart.register(ChartDeferred); Chart.defaults.set("plugins.deferred", { - yOffset: "50%", - delay: 500, + yOffset: "20%", + delay: 300, }); function updateCachePie(data) {