overviewControls: Add "gesture-in-progress" property on the state adjustment
This will be set whenever an event controller is manipulating the adjustment. It should enter the same transitional state it does for animations. This will be used by the overview gesture. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1643>
This commit is contained in:
parent
f69727464c
commit
ddb8782179
@ -195,8 +195,14 @@ class ControlsManagerLayout extends Clutter.BoxLayout {
|
||||
}
|
||||
});
|
||||
|
||||
var OverviewAdjustment = GObject.registerClass(
|
||||
class OverviewAdjustment extends St.Adjustment {
|
||||
var OverviewAdjustment = GObject.registerClass({
|
||||
Properties: {
|
||||
'gesture-in-progress': GObject.ParamSpec.boolean(
|
||||
'gesture-in-progress', 'Gesture in progress', 'Gesture in progress',
|
||||
GObject.ParamFlags.READWRITE,
|
||||
false),
|
||||
},
|
||||
}, class OverviewAdjustment extends St.Adjustment {
|
||||
_init(actor) {
|
||||
super._init({
|
||||
actor,
|
||||
@ -231,7 +237,7 @@ class OverviewAdjustment extends St.Adjustment {
|
||||
: 1;
|
||||
|
||||
return {
|
||||
transitioning: transition !== null,
|
||||
transitioning: transition !== null || this.gestureInProgress,
|
||||
currentState,
|
||||
initialState,
|
||||
finalState,
|
||||
|
Loading…
Reference in New Issue
Block a user