appDisplay: Rename _lastOvershootTimeoutId
Trivial renaming to _overshootTimeoutId. No functional changes. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2335>
This commit is contained in:
parent
01e43969e8
commit
692de0eb95
@ -637,7 +637,7 @@ var BaseAppView = GObject.registerClass({
|
|||||||
() => this._redisplay(), this);
|
() => this._redisplay(), this);
|
||||||
|
|
||||||
// Drag n' Drop
|
// Drag n' Drop
|
||||||
this._lastOvershootTimeoutId = 0;
|
this._overshootTimeoutId = 0;
|
||||||
this._delayedMoveData = null;
|
this._delayedMoveData = null;
|
||||||
|
|
||||||
this._dragBeginId = 0;
|
this._dragBeginId = 0;
|
||||||
@ -838,9 +838,9 @@ var BaseAppView = GObject.registerClass({
|
|||||||
}
|
}
|
||||||
|
|
||||||
_resetOvershoot() {
|
_resetOvershoot() {
|
||||||
if (this._lastOvershootTimeoutId)
|
if (this._overshootTimeoutId)
|
||||||
GLib.source_remove(this._lastOvershootTimeoutId);
|
GLib.source_remove(this._overshootTimeoutId);
|
||||||
this._lastOvershootTimeoutId = 0;
|
this._overshootTimeoutId = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
_handleDragOvershoot(dragEvent) {
|
_handleDragOvershoot(dragEvent) {
|
||||||
@ -856,7 +856,7 @@ var BaseAppView = GObject.registerClass({
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this._lastOvershootTimeoutId > 0)
|
if (this._overshootTimeoutId > 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
let targetPage;
|
let targetPage;
|
||||||
@ -868,14 +868,14 @@ var BaseAppView = GObject.registerClass({
|
|||||||
if (targetPage < 0 || targetPage >= this._grid.nPages)
|
if (targetPage < 0 || targetPage >= this._grid.nPages)
|
||||||
return; // don't go beyond first/last page
|
return; // don't go beyond first/last page
|
||||||
|
|
||||||
this._lastOvershootTimeoutId =
|
this._overshootTimeoutId =
|
||||||
GLib.timeout_add(GLib.PRIORITY_DEFAULT, OVERSHOOT_TIMEOUT, () => {
|
GLib.timeout_add(GLib.PRIORITY_DEFAULT, OVERSHOOT_TIMEOUT, () => {
|
||||||
this._resetOvershoot();
|
this._resetOvershoot();
|
||||||
this.goToPage(targetPage);
|
this.goToPage(targetPage);
|
||||||
return GLib.SOURCE_REMOVE;
|
return GLib.SOURCE_REMOVE;
|
||||||
});
|
});
|
||||||
GLib.Source.set_name_by_id(this._lastOvershootTimeoutId,
|
GLib.Source.set_name_by_id(this._overshootTimeoutId,
|
||||||
'[gnome-shell] this._lastOvershootTimeoutId');
|
'[gnome-shell] this._overshootTimeoutId');
|
||||||
}
|
}
|
||||||
|
|
||||||
_onDragBegin() {
|
_onDragBegin() {
|
||||||
|
Loading…
Reference in New Issue
Block a user