mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
appDisplay: Increase folder dialog popdown timeout
App folders are now customizable, and the way to move icons to another page is by throwing the cursor to either the left or the right of the grid. However, doing that triggers the popdown timeout, wich is 600ms as of now, which is considerably short for such interaction. Increase this timeout to 1.5 seconds. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1284
This commit is contained in:
parent
f06c257952
commit
730a68dffc
1 changed files with 2 additions and 1 deletions
|
|
@ -19,6 +19,7 @@ const Params = imports.misc.params;
|
|||
const SystemActions = imports.misc.systemActions;
|
||||
|
||||
var MENU_POPUP_TIMEOUT = 600;
|
||||
var POPDOWN_DIALOG_TIMEOUT = 1500;
|
||||
|
||||
var FOLDER_SUBICON_FRACTION = .4;
|
||||
|
||||
|
|
@ -2313,7 +2314,7 @@ var AppFolderDialog = GObject.registerClass({
|
|||
}
|
||||
} else if (this._popdownTimeoutId === 0) {
|
||||
this._popdownTimeoutId =
|
||||
GLib.timeout_add(GLib.PRIORITY_DEFAULT, MENU_POPUP_TIMEOUT, () => {
|
||||
GLib.timeout_add(GLib.PRIORITY_DEFAULT, POPDOWN_DIALOG_TIMEOUT, () => {
|
||||
this._popdownTimeoutId = 0;
|
||||
this.popdown();
|
||||
return GLib.SOURCE_REMOVE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue