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
Powered by the Multi-Screen Window Placement API, I've tried to implement a new behavior of "Open presenter view" button, for opening the presenter view into the current screen as an external window and making start the main view full screen into external screen at the same time.
However, I found both of operations cannot do at once with one click of the button. There are no workarounds because they are restrictions due to security reason.
If opened a window by window.open() first, requestFullscreen() gives up making the slide fullscreen with an error "cannot be initiated without a user gesture".
If run requestFullscreen() first, the browser will block opening a new window by window.open(). Users can permit opening the pop-up window from the browser notification, but I'm thinking it is hard to notice that because it has delivered quietly.
In addition, the Multi-Screen Window Placement API shows users the prompt to grant a permission. In the case of local HTML file (Marp's primary use), the browser will ask the permission each time of opening presenter view. Compared to the current behavior, users may feel irritated to the new behavior.
Google Chrome 💯 has implemented Multi-Screen Window Placement API. It definitely matches to Marp's use case, the presenter view of Marp CLI's bespoke template.
The text was updated successfully, but these errors were encountered: