mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-31 00:11:59 +02:00
Increase delay of hiding controls when fullscreen
This commit is contained in:
@@ -610,7 +610,13 @@ class ClapperWidget extends Gtk.Grid
|
|||||||
_setHideControlsTimeout()
|
_setHideControlsTimeout()
|
||||||
{
|
{
|
||||||
this._clearTimeout('hideControls');
|
this._clearTimeout('hideControls');
|
||||||
this._hideControlsTimeout = GLib.timeout_add(GLib.PRIORITY_DEFAULT, 2500, () => {
|
|
||||||
|
let time = 2500;
|
||||||
|
|
||||||
|
if(this.isFullscreenMode && !this.isMobileMonitor)
|
||||||
|
time += 1500;
|
||||||
|
|
||||||
|
this._hideControlsTimeout = GLib.timeout_add(GLib.PRIORITY_DEFAULT, time, () => {
|
||||||
this._hideControlsTimeout = null;
|
this._hideControlsTimeout = null;
|
||||||
|
|
||||||
if(this.isCursorInPlayer) {
|
if(this.isCursorInPlayer) {
|
||||||
|
Reference in New Issue
Block a user