2024-12-19, 10:59 PM
(This post was last modified: 2024-12-19, 11:01 PM by raulo1985. Edited 1 time in total.)
(2024-10-08, 07:44 PM)TheDreadPirate Wrote: My understanding is that is just for web browsing on the TV so that when you scroll down a page it is animated instead of "skipping" as you scroll. It has no functional purpose.
Hi:
Sorry to revive this thread, but since I wanted to modify a couple of things on jellyfin-web for my server (so I had to modify the code anyway), I decided to modify the smoothscroll line that you said (in the scrollManager.js file. Although apparently the current state of that file is that smooth scroll is no longer enabled by default only on Tizen clients, but I replaced the line for "return false" anyway).
I have yet to test the UI performance on my relative's Samsung Smart TV after I built jellyfin-web from source with that line modified, but I have a question on that regard. In the appSettings.js file (src/scripts/settings), there's also some code related to smooth scrolling, and looks like it enables smooth scroll on Tizen clients:
Code:
/**
* Get or set 'Enable smooth scroll' state.
* @param {boolean|undefined} val - Flag to enable 'Enable smooth scroll' or undefined.
* @return {boolean} 'Enable smooth scroll' state.
*/
enableSmoothScroll(val) {
if (val !== undefined) {
return this.set('enableSmoothScroll', val.toString());
}
return toBoolean(this.get('enableSmoothScroll'), !!browser.tizen);
}
Should I modify both files (scrollManager.js and appSettings.js) for smooth scroll to be disabled by default on all clients (including Tizen)? If so, should I replace "!!browser.tizen" with "false"?
Thanks again!