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

glider-slide-visible and glider-slide-hidden events only fire with scrollLock #66

Closed
kevinfarrugia opened this issue May 24, 2021 · 4 comments · Fixed by #68
Closed
Labels

Comments

@kevinfarrugia
Copy link
Owner

glider-js exposes two events, glider-slide-visible and glider-slide-hidden which fire when a slide is visible or hidden respectively. On the glider-js package, these fire in all the following three cases:

  • Horizontal scrolling (touch or mouse)
  • Horizontal scrolling (touch or mouse) with scrollLock: true
  • Clicking on the dots

On the react-glider project, the first scenario does not fire any events.
⚠ Horizontal scrolling (touch or mouse)
✅ Horizontal scrolling (touch or mouse) with scrollLock: true
✅ Clicking on the dots

@hipstersmoothie
Copy link
Collaborator

Have your other PRs fixed this?

@kevinfarrugia
Copy link
Owner Author

No not yet. I was going to look into it separately.

@kevinfarrugia
Copy link
Owner Author

I investigated this and the root cause is on glider-js as it previously used to use _.scrollLeft and this should be _.ele.scrollLeft. This is fixed on glider-js: 1.7.7 so I have upgraded the package.json dependency to that version.

For more info on the bug on glider-js:

@hipstersmoothie
Copy link
Collaborator

🚀 Issue was released in v2.2.1 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants