Skip to main content

Questions tagged [fullscreenchange]

The tag has no usage guidance.

fullscreenchange
2 votes
0 answers
106 views

How to run function before fullscreenchange in Javascript

I have a function in Javascript that need to be called BEFORE event fullscreenchange occurs. As stated on MDN, The fullscreenchange event is fired immediately AFTER the browser switches into or out of ...
vanminhquangtri's user avatar
0 votes
1 answer
764 views

I'm trying to get a fullscreen toggle button working in C# code with Unity

using System.Collections; using System.Collections.Generic; using UnityEngine; public class Fullscreentoggle : MonoBehaviour { public void SetFullscreen (bool isFullscreen) { Screen....
Yo-Kai Guy's user avatar
2 votes
0 answers
546 views

Switching fullscreen triggers a "visibilitychange" event on safari

On Safari (15.3) on Macos (11.6.4), and possibly on ios too, enabling and disabling fullscreen triggers a "visibilitychange" event. It doesn't on Chrome and Firefox. Is there a simple way to ...
user1657853's user avatar
0 votes
1 answer
2k views

How to check if user is in fullscreen mode inside a vue component?

I have a vue component and I wanted to track when the user changes the browser to fullscreen or exits the full screen. I tried adding event listeners when the component is mounted but these events are ...
Apoorv Pal's user avatar
0 votes
2 answers
3k views

How to stop esc from closing my fullscreen video in javascript?

Currently working on a video player that has a specific styling class added to it if the video is fullscreen. If user exits using esc and not fullscreen button, the styling stays put. /* View in ...
YouMorCan's user avatar
2 votes
1 answer
597 views

Allow alerts to happen when in full screen html?

I have a website, and theres an option in it to make it full screen. Here's the code to make it full screen: <script> addEventListener("click", function() { var el = ...
user avatar
1 vote
1 answer
88 views

Reopening a game fullscreen is being broken in pygame

I am trying to make a 700x700 fullscreen game in pygame, but whenever I get out of the game and get back in, the screen breaks, showing what was opened before reopening the game. How do I fix it ...
Zeperox's user avatar
  • 206
0 votes
1 answer
279 views

NSApplication Assert failure when exiting fullscreen

I've written a corevideo application which has one window with a single content view. The window resizes as expected. I've added the code to make it accept the fullscreen event, which the window does ...
silicontrip's user avatar
  • 1,006
2 votes
1 answer
910 views

Restrict user to exit the fullscreen mode in Angular 8

I'm using Angular v8 for my application. My problem is I want to restrict the user from exiting the fullscreen mode. I have looked various solution on Stack Overflow and found one. Below is my code ...
Yashwardhan Pauranik's user avatar
2 votes
1 answer
3k views

"fullscreenchange" event isn't compatible with every browser (looking for Vanilla Javascript fix)

I am using the "fullscreenchange" event to apply the css I would like by adding or removing an ID (#showFullscreen) that will take dominance over the css already applied to .fullscreen. var ...
srWebDev's user avatar
  • 414
1 vote
1 answer
2k views

Disabling 'allowfullscreen' from the youtube in the javascript

To prevent double click fullscreen from the iframe all you do is remove 'allowfullscreen' from the iframe code. <iframe width="606" height="344" src="https://www.youtube.com/embed/M7lc1UVf-VE" ...
user avatar
3 votes
2 answers
7k views

HTML5 - Prevent Fullscreen Mode

I'm using the Fullscreen API with an embedded YouTube video to detect whether or not the browser window has entered fullscreen mode. I have that working great. What I'd like to do is prevent from ...
Alexander's user avatar
  • 4,109
0 votes
1 answer
1k views

change game screen & changing character image using p5.js

I am creating a simple computer game. The concept is that there are random birds on the screen, and when the mouse is pressed, the birds stop and change to a dead bird image. I need help with ...
pinkcouture's user avatar
0 votes
0 answers
46 views

Detect user switched to fullscreen [duplicate]

When my web page is requesting a full screen access using requestFullscreen from Fullscreen API, it can install a fullscreenchange event handler to be notified of going in / out of fullscreen. However ...
Suma's user avatar
  • 34.1k
3 votes
2 answers
1k views

firefox browser settings to avoid appearance of menu bar or task bar in full screen when pointing mouse on the top of the screen

I am using firefox 3.0 in rhel6.2.Wwhen I press F11, the fullscreen mode appears, but if the mouse pointer goes to the top of the screen at fulscreen mode then the task bar appears. I want to avoid ...
uddipana's user avatar
  • 188

15 30 50 per page