Tetrakern / fictioneer

A web fiction theme for WordPress.
https://fictioneer-theme.com
GNU General Public License v3.0
104 stars 16 forks source link

on click of next button, fullscreen exit #13

Closed Nabeelshar closed 9 months ago

Nabeelshar commented 9 months ago

When user in Fullscreen in chapter page and they click next chapter they exit Fullscreen. Possible solutions. Ajax next chapter.

Tetrakern commented 9 months ago

This is just how to Fullscreen API works; it's exited when you navigate. This is a bit inconvenient but not terrible. Using AJAX to load the next chapter is certainly technically possible, but not feasible with how the theme works. A chapter page is not just the content and comments; the whole DOM is referencing the chapter. You would have to replace the whole document, which would probably close the fullscreen again and turn the theme essentially into a single page application.

This would require a complete rewrite of how the theme operates, you might as well make a React app.