1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Add option to enable smooth scroll

This commit is contained in:
Dmitry Lyzo 2024-03-25 01:16:33 +03:00
parent ba0e227b17
commit 639f99f82a
5 changed files with 30 additions and 2 deletions

View file

@ -4,7 +4,7 @@
*/
import dom from '../scripts/dom';
import browser from '../scripts/browser';
import appSettings from 'scripts/settings/appSettings';
import layoutManager from './layoutManager';
/**
@ -477,7 +477,7 @@ function doScroll(xScroller, scrollX, yScroller, scrollY, smooth) {
* Returns true if smooth scroll must be used.
*/
function useSmoothScroll() {
return !!browser.tizen;
return appSettings.enableSmoothScroll();
}
/**