Skip to content

Scroll position is wrong when files have attributes#257

Open
t00n wants to merge 1 commit intopimusicbox:developfrom
t00n:develop
Open

Scroll position is wrong when files have attributes#257
t00n wants to merge 1 commit intopimusicbox:developfrom
t00n:develop

Conversation

@t00n
Copy link

@t00n t00n commented Sep 25, 2018

Hi !

In the browser, when coming back from a directory, the scrolling of the previous directory is set before the file attributes (album name, etc...) are loaded, which results in a wrong scrolling if a lot of files have attributes because loading attributes changes the height of the scroll.

I simply moved the code that sets the scrolling after the code that loads file attributes.

…les attributes are loaded after window.scrollTo is called
@kingosticks
Copy link
Member

I'd love it if this was the fix. Does it work for playlists too? What browsers have you checked?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments