Revert "appDisplay: Rename _lastOvershootTimeoutId"
This reverts commit 692de0eb95
.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2581>
This commit is contained in:
parent
272c770815
commit
52ed7917f3
@ -638,7 +638,7 @@ var BaseAppView = GObject.registerClass({
|
||||
() => this._redisplay(), this);
|
||||
|
||||
// Drag n' Drop
|
||||
this._overshootTimeoutId = 0;
|
||||
this._lastOvershootTimeoutId = 0;
|
||||
this._delayedMoveData = null;
|
||||
|
||||
this._dragBeginId = 0;
|
||||
@ -839,9 +839,9 @@ var BaseAppView = GObject.registerClass({
|
||||
}
|
||||
|
||||
_resetOvershoot() {
|
||||
if (this._overshootTimeoutId)
|
||||
GLib.source_remove(this._overshootTimeoutId);
|
||||
this._overshootTimeoutId = 0;
|
||||
if (this._lastOvershootTimeoutId)
|
||||
GLib.source_remove(this._lastOvershootTimeoutId);
|
||||
this._lastOvershootTimeoutId = 0;
|
||||
}
|
||||
|
||||
_handleDragOvershoot(dragEvent) {
|
||||
@ -857,7 +857,7 @@ var BaseAppView = GObject.registerClass({
|
||||
return;
|
||||
}
|
||||
|
||||
if (this._overshootTimeoutId > 0)
|
||||
if (this._lastOvershootTimeoutId > 0)
|
||||
return;
|
||||
|
||||
let targetPage;
|
||||
@ -869,14 +869,14 @@ var BaseAppView = GObject.registerClass({
|
||||
if (targetPage < 0 || targetPage >= this._grid.nPages)
|
||||
return; // don't go beyond first/last page
|
||||
|
||||
this._overshootTimeoutId =
|
||||
this._lastOvershootTimeoutId =
|
||||
GLib.timeout_add(GLib.PRIORITY_DEFAULT, OVERSHOOT_TIMEOUT, () => {
|
||||
this._resetOvershoot();
|
||||
this.goToPage(targetPage);
|
||||
return GLib.SOURCE_REMOVE;
|
||||
});
|
||||
GLib.Source.set_name_by_id(this._overshootTimeoutId,
|
||||
'[gnome-shell] this._overshootTimeoutId');
|
||||
GLib.Source.set_name_by_id(this._lastOvershootTimeoutId,
|
||||
'[gnome-shell] this._lastOvershootTimeoutId');
|
||||
}
|
||||
|
||||
_onDragBegin() {
|
||||
|
Loading…
Reference in New Issue
Block a user