mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-20 22:27:31 +09:00
Tweak fullscreen API
This commit is contained in:
parent
51510273b0
commit
4de2d1fc68
1 changed files with 3 additions and 10 deletions
|
|
@ -4761,23 +4761,16 @@ pref("alerts.showFavicons", false);
|
||||||
|
|
||||||
// DOM full-screen API.
|
// DOM full-screen API.
|
||||||
pref("full-screen-api.enabled", false);
|
pref("full-screen-api.enabled", false);
|
||||||
#ifdef RELEASE_OR_BETA
|
|
||||||
pref("full-screen-api.unprefix.enabled", false);
|
|
||||||
#else
|
|
||||||
pref("full-screen-api.unprefix.enabled", true);
|
pref("full-screen-api.unprefix.enabled", true);
|
||||||
#endif
|
|
||||||
pref("full-screen-api.allow-trusted-requests-only", true);
|
pref("full-screen-api.allow-trusted-requests-only", true);
|
||||||
pref("full-screen-api.pointer-lock.enabled", true);
|
pref("full-screen-api.pointer-lock.enabled", true);
|
||||||
|
|
||||||
// transition duration of fade-to-black and fade-from-black, unit: ms
|
// transition duration of fade-to-black and fade-from-black, unit: ms
|
||||||
#ifndef MOZ_WIDGET_GTK
|
|
||||||
pref("full-screen-api.transition-duration.enter", "200 200");
|
|
||||||
pref("full-screen-api.transition-duration.leave", "200 200");
|
|
||||||
#else
|
|
||||||
pref("full-screen-api.transition-duration.enter", "0 0");
|
pref("full-screen-api.transition-duration.enter", "0 0");
|
||||||
pref("full-screen-api.transition-duration.leave", "0 0");
|
pref("full-screen-api.transition-duration.leave", "0 0");
|
||||||
#endif
|
|
||||||
// timeout for black screen in fullscreen transition, unit: ms
|
// timeout for black screen in fullscreen transition, unit: ms
|
||||||
pref("full-screen-api.transition.timeout", 1000);
|
pref("full-screen-api.transition.timeout", 500);
|
||||||
// time for the warning box stays on the screen before sliding out, unit: ms
|
// time for the warning box stays on the screen before sliding out, unit: ms
|
||||||
pref("full-screen-api.warning.timeout", 3000);
|
pref("full-screen-api.warning.timeout", 3000);
|
||||||
// delay for the warning box to show when pointer stays on the top, unit: ms
|
// delay for the warning box to show when pointer stays on the top, unit: ms
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue