From 125c43ff058a9b6c5c236fb5580433aa37f17430 Mon Sep 17 00:00:00 2001 From: RG Date: Fri, 15 Sep 2023 14:59:06 +0530 Subject: [PATCH] [FIX] Animation glitch on IE --- www/js/init.js | 2 +- www/js/lib/uiUtil.js | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/www/js/init.js b/www/js/init.js index d7ddbf6a9..9530d2140 100644 --- a/www/js/init.js +++ b/www/js/init.js @@ -49,7 +49,7 @@ params['storeType'] = getBestAvailableStorageAPI(); // The key prefix used by the settingsStore.js (see comment there for explanation), but we also need it below params['keyPrefix'] = 'kiwixjs-'; params['hideActiveContentWarning'] = getSetting('hideActiveContentWarning') === true; -params['showUIAnimations'] = getSetting('showUIAnimations') !== true; +params['showUIAnimations'] = getSetting('showUIAnimations') === true; // Maximum number of article titles to return (range is 5 - 50, default 25) params['maxSearchResultsSize'] = getSetting('maxSearchResultsSize') || 25; // Turns caching of assets on or off and deletes the cache (it defaults to true unless explicitly turned off in UI) diff --git a/www/js/lib/uiUtil.js b/www/js/lib/uiUtil.js index 14372dd43..e71531dba 100644 --- a/www/js/lib/uiUtil.js +++ b/www/js/lib/uiUtil.js @@ -501,7 +501,12 @@ function removeAnimationClasses () { const home = document.getElementById('articleContent'); const tabs = [config, about, home] - tabs.forEach(tab => tab.classList.remove('slideIn_L', 'slideIn_R', 'slideOut_L', 'slideOut_R')); + tabs.forEach(tab => { + tab.classList.remove('slideIn_L'); + tab.classList.remove('slideIn_R'); + tab.classList.remove('slideOut_L'); + tab.classList.remove('slideOut_R'); + }); } /**