You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Only when scrollActivationWidth is not a number then Reveal.toggleScrollView() will ignore the responsible and work. (like in https://revealjs.com/demo/ where Reveal.getConfig().scrollActivationWidth is null)
I would have expect Reveal.toggleScrollView() to not be impacted by the presentation size logic as it is an API call explicitly done by user or other tools like I am trying to do.
Hope this is clear enough. please to tell me if an example if needed to illustrate better the usage and problem encountered.
Thanks
The text was updated successfully, but these errors were encountered:
Using default configuration, we inherit Automatic Activation of scroll view on mobile.
reveal.js/js/config.js
Lines 285 to 287 in 669cc25
I was trying in this mode to a menu button (using menu pluggin) and a keyboard shortcut to trigger scroll mode using API
Reveal.toggleScrollView()
However, it was not working and I checked that in browser console
Reveal.toggleScrollView()
does not apply.I debugged step into the logic, and found that at some point in scrollView
activate()
Reveal.layout()
will be called on the new document DOMreveal.js/js/controllers/scrollview.js
Line 146 in 669cc25
which will check for scrollView responsive
reveal.js/js/reveal.js
Line 1035 in 669cc25
And it will call scrollView
deactivate()
as long as thescrollActivationWidth
is setreveal.js/js/reveal.js
Lines 1092 to 1120 in 669cc25
Only when
scrollActivationWidth
is not a number thenReveal.toggleScrollView()
will ignore the responsible and work. (like in https://revealjs.com/demo/ whereReveal.getConfig().scrollActivationWidth
isnull
)I would have expect
Reveal.toggleScrollView()
to not be impacted by the presentation size logic as it is an API call explicitly done by user or other tools like I am trying to do.Hope this is clear enough. please to tell me if an example if needed to illustrate better the usage and problem encountered.
Thanks
The text was updated successfully, but these errors were encountered: