Increase delay of hiding controls when fullscreen

This commit is contained in:
Rafał Dzięgiel
2021-02-22 11:29:26 +01:00
parent 5e66a2bb5a
commit 8407a325af

View File

@@ -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) {