hakimel / reveal.js

The HTML Presentation Framework
https://revealjs.com
MIT License
67.91k stars 16.65k forks source link

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

Open arthurrump opened 6 months ago

arthurrump commented 6 months ago

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.