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

Conflict with locomotive scroll / smooth scrolling #9

Open
jesserosenfield opened this issue Mar 21, 2022 · 1 comment
Open

Conflict with locomotive scroll / smooth scrolling #9

jesserosenfield opened this issue Mar 21, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@jesserosenfield
Copy link

first off, thanks so much for the amazing plugin!

https://codepen.io/handiworknyc/pen/RwxGGgm

See codepen. try hovering over some elements.

There should be an option to pass the [locoMotiveScrollInstance].scroll.instance.scroll.y to the blobity instance. The transform attributes of focused elements are not being factored in.

Thanks!

@jesserosenfield jesserosenfield added the bug Something isn't working label Mar 21, 2022
@gmrchk
Copy link
Owner

gmrchk commented Jul 10, 2022

Hi @jesserosenfield, apologies for taking such a long time!

I would like to clarify the issue as I'm not sure I understand. Does the issue appear once:

  1. Focusable element is hovered over and Blobity focuses on it.
  2. Scroll is done, which makes the focusable area misaligned with the area focused by Blobity.

Are those steps correct to reproduce?
And in such a case, would a blobity.update() method which would recalculate the position of the focused element and update Blobity position to it be sufficient? Such a method could be called on your scroll handler. It could actually probably also be called internally by Blobity on the scroll of the page as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants