Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve autoscroll by automatically search for scroll container #153

Open
wants to merge 35 commits into
base: dev
Choose a base branch
from

Conversation

thomasdao
Copy link

Hi,

Thank you for the great library :).

I really like the autoscroll feature, however it only works if the SlickList is scrollable. However in my app, I use a few SlickList components inside a scrollable parent, and autoscroll does not work, since currently the scrolling container is the container itself.

This commit simply searches for the scrollable element instead of using the default container, so that autoscroll works when SlickList is inside a scrollable parent.

Although this is for v2, I can port to v1 if you're ok with the logic :)

dhritzkiv and others added 11 commits February 18, 2021 15:42
Make the CHANGELOG more readable, as new lines aren't interpreted as line breaks, but list items are
Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.3 to 6.5.4.
- [Release notes](https://github.com/indutny/elliptic/releases)
- [Commits](indutny/elliptic@v6.5.3...v6.5.4)

Signed-off-by: dependabot[bot] <[email protected]>
…yarn/elliptic-6.5.4

Bump elliptic from 6.5.3 to 6.5.4
Fix bug when autoscroll does not work correctly with useWindowAsScrollContainer. document.body has no scrollTop value in several cases, but document.documentElement works fine always.
Currently the scrolling container is the container itself, however sometimes the SlickList is not scrollable, but is embedded inside a scrollable parent.

This commit searches for the scrollable element instead of using the default container, so that autoscroll works when SlickList is inside a scrollable parent.
@setur52
Copy link

setur52 commented Feb 21, 2022

Can someone merge this PR? Very helpfull if its work.

@matur367
Copy link

Yes, can someone merge this PR soon ?

@rabbitfufu
Copy link

This would be very helpful

@andrey-hohlov
Copy link

Any chance to merge it?

@qiutian00
Copy link

qiutian00 commented Dec 5, 2023

This would be very helpful use SlickList components inside a scrollable parent . When use pnpm, can use like this pnpm install https://github.com/thomasdao/vue-slicksort.git#dev

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.

None yet