Skip to content

Commit

Permalink
[FIX] Animation glitch on IE
Browse files Browse the repository at this point in the history
  • Loading branch information
Rishabhg71 committed Sep 15, 2023
1 parent 88d1bda commit 125c43f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion www/js/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
7 changes: 6 additions & 1 deletion www/js/lib/uiUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
}

/**
Expand Down

0 comments on commit 125c43f

Please sign in to comment.