Disable mouse click to show another slide in rmarkdown slidy_presentation

℡╲_俬逩灬. 提交于 2019-12-12 09:15:08

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!