Skip to content

Add option to scroll inside an element on the page#3

Open
0ui wants to merge 8 commits intolinuss:masterfrom
0ui:scroll-inside-element
Open

Add option to scroll inside an element on the page#3
0ui wants to merge 8 commits intolinuss:masterfrom
0ui:scroll-inside-element

Conversation

@0ui
Copy link

@0ui 0ui commented Oct 2, 2020

I forked this for my own project but I think scrolling with individual elements has good general use cases (chat boxes, long side navigation, etc.) with no major version changes

  • Adds option to scroll with a DOM element instead of the document body
  • Adds an example .elm file for this
  • Cleans up documentation a bit

Scrolling within a DOM element requires a few more variables to keep track of so it's a few lines longer but it's been a big help for me. Thanks for the great package.

Cheers

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.

1 participant