mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
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
1 changed files with 9 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue