• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support General Questions Jellyfin for Tizen official app: How to disable Smooth Scrolling?

    Pages (2): « Previous 1 2

     
    • 0 Vote(s) - 0 Average

    Jellyfin for Tizen official app: How to disable Smooth Scrolling?

    raulo1985
    Offline

    Junior Member

    Posts: 45
    Threads: 9
    Joined: 2024 Jul
    Reputation: 0
    Country:Chile
    #11
    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!
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #12
    2024-12-20, 03:24 PM
    I honestly have no idea.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    raulo1985
    Offline

    Junior Member

    Posts: 45
    Threads: 9
    Joined: 2024 Jul
    Reputation: 0
    Country:Chile
    #13
    2024-12-21, 12:04 AM
    (2024-12-20, 03:24 PM)TheDreadPirate Wrote: I honestly have no idea.

    Thanks for your honest reply  Squinting-face-with-tongue

    Guess it wouldn’t hurt to modify that line too. Since I’m clearly not at expert at coding, what I should do is to replace that “!!browser.tizen” line with “return false”? That would be the correct syntax (even if we don’t know the real impact of modifying that line)?

    Still weird that the line at scrollManager.js was modified at some point and it no longer mentions only Tizen clients for Smooth Scroll to be enabled by default, but at the same time only Tizen client is mentioned in appSetting.js when talking about Smooth Scroll. Perhaps the last one doesn’t do anything, but I guess it’s better to make sure and return false it (but without breaking things because of bad syntax). Is it correct to replace !!browser.tizen with return false from a coding/syntax point of view?
    Pages (2): « Previous 1 2

    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode