问题
I'm wondering how to disable left mouse click to show another slide in rmarkdown slidy_presentation. If I'm trying to disable/enable some category in plotly chart, it'll skip to another slide. Is there any option how to handle it. Many thanks for your suggestions in forward.
回答1:
In my current version of slidy (rmarkdown 1.6) you can disable/enable mouse click
advance by pressing key 'k'
, when viewing the presentation.
To change the default (on file open) behavior I had to change line 55 in
[R package library]/rmarkdown/rmd/slidy/Slidy2/scripts/slidy.js
to
mouse_click_enabled: false, // enables left click for next slide
来源:https://stackoverflow.com/questions/39996042/disable-mouse-click-to-show-another-slide-in-rmarkdown-slidy-presentation