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

Compatibility with smooth scroll #256

Open
elliott-impression opened this issue Nov 6, 2020 · 0 comments
Open

Compatibility with smooth scroll #256

elliott-impression opened this issue Nov 6, 2020 · 0 comments

Comments

@elliott-impression
Copy link

Hello,

Expected Behavior

It should work as expected/normal behaviour when using a smooth-scroll library, for example locomotive-scroll.

Current Behavior

It does not work, which is likely because Lozad does not know the current scroll position.

Possible Solution

Option to detect by native (existing) scroll or by another means on desktop? I.e...

smoothScroll.on('scroll', (obj) => {
            updateScroll(obj.scroll.x, obj.scroll.y);
});

Here is an example of that: Preview / Code.

Steps to Reproduce (for bugs)

Just install Locomotive Scroll, and Lozad as normal.

Tested on:

Latest version of Chrome on Windows 10 and MacOS.

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

No branches or pull requests

1 participant