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

getSlide (by index) does not work in scroll view #3616

Open
arthurrump opened this issue Apr 25, 2024 · 0 comments
Open

getSlide (by index) does not work in scroll view #3616

arthurrump opened this issue Apr 25, 2024 · 0 comments

Comments

@arthurrump
Copy link

I would expect

const { h, v } = Reveal.getIndices()
Reveal.getSlide(h, v)

to always give the same result as

Reveal.getCurrentSlide()

This is indeed the case in the normal view mode. However, in scroll view it looks like getSlide(h,v) returns a dummy horizontal slide from the first children of the .slides element, whereas getCurrentSlide() works as expected and returns the actual slide element.

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