alexanderdavide / slidev-theme-academic

Academic presentations with Slidev made simple 🎓
https://slidev-theme-academic.alexeble.de
MIT License
109 stars 30 forks source link

Present Stucked in Presenter Mode When Switching Slide Page #18

Open hehaorui opened 11 months ago

hehaorui commented 11 months ago

The bug occurs in presenter mode. When switching slide page back and forth rapidly in presenter mode, the brower will soon stuck and unable to switch between slide pages any more. Though hitting left or right key do change the url displayed in the browser address bar, it still remains on the same slide page. The only method to fix it is refreshing the browser. This bug doesn't occur in other slidev theme, and it will occur both in firefox and chromium. I'm wondering whether the bug stems from the pagination component.

UPD: I've tried to remove the pagination part in the global-top.vue file, and the bug no longer occurs, which confirms that the bug stems from the pagination component.

alexanderdavide commented 11 months ago

Hey @hehaorui, thanks for using the theme and reporting this issue!

The Pagination component merely is a convenience component that makes use of slidev's built-in components SlideCurrentNo and SlidesTotal.

Please test a new slidev project without slidev-theme-academic, using the same slidev version as in your erroneous project, add the just mentioned components and report back whether the issue still occurs.