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

Fix for issue 144 #146

Merged
merged 5 commits into from
Jan 18, 2021
Merged

Conversation

aurovrata
Copy link
Contributor

Fixes #144

Here is a proposal for fixing the scrollLeft reset by creating a _.scrollLeft on the Glider object and using that instead of the _.ele.scrollLeft

aurovrata and others added 5 commits September 20, 2020 22:16
add a slide index data attribute to each slide upon initialisation.

line 103,
[].forEach.call(_.slides, function (_) {
      _.classList.add('glider-slide')
})

changed to 

 [].forEach.call(_.slides, function (_,i) {
      _.classList.add('glider-slide');
      _.setAttribute('data-gslide',i)
    })
slide index attribute
@NickPiscitelli NickPiscitelli merged commit 59eeb9a into NickPiscitelli:master Jan 18, 2021
@NickPiscitelli
Copy link
Owner

Hi aurovrata,

Thanks for the fix; this makes sense to me.

@aurovrata aurovrata deleted the bugfix_144 branch January 19, 2021 08:59
@aurovrata
Copy link
Contributor Author

Sooper! Happy to contribute.

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.

Event 'glider-slide-visible' fails to fire on last slide
2 participants