bring back scroll restoration #2425

Merged
neb-b merged 2 commits from scroll into master 2019-04-19 20:58:29 +02:00
neb-b commented 2019-04-15 17:43:34 +02:00 (Migrated from github.com)

Changes

  • Scroll restoration works on web/desktop

This required moving the scrollable element to the window instead of the <main> html node. ~Since the scrolling moved to the window, I removed the custom scrollbar styles. Keeping them as is looked pretty bad since they are "off" the screen now (to the right). We could assign space for it in the ui to have it overlap like it used to, but then the content would jump left or right based on if the current page was scrollable or not.~

Nevermind, it looked even worse with the default scroll styles on windows. So I added it back. It's ok for now.

### Changes - Scroll restoration works on web/desktop This required moving the scrollable element to the window instead of the `<main>` html node. ~Since the scrolling moved to the window, I removed the custom scrollbar styles. Keeping them as is looked pretty bad since they are "off" the screen now (to the right). We could assign space for it in the ui to have it overlap like it used to, but then the content would jump left or right based on if the current page was scrollable or not.~ Nevermind, it looked even worse with the default scroll styles on windows. So I added it back. It's ok for now.
kauffj (Migrated from github.com) reviewed 2019-04-15 17:43:34 +02:00
skhameneh (Migrated from github.com) approved these changes 2019-04-19 20:32:54 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbry-desktop#2425
No description provided.