environment: Support slow down factor when easing
Being able to slow down animations is a helpful debugging tool; to not lose it when starting to use Clutter's implicit animations, monkey-patch the appropriate methods to support our global slow down factor. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/22
This commit is contained in:
parent
99b4e047dd
commit
0b4a4487a0
@ -94,6 +94,15 @@ function init() {
|
|||||||
column_spacing: 'spacing-columns' });
|
column_spacing: 'spacing-columns' });
|
||||||
_patchLayoutClass(Clutter.BoxLayout, { spacing: 'spacing' });
|
_patchLayoutClass(Clutter.BoxLayout, { spacing: 'spacing' });
|
||||||
|
|
||||||
|
let origSetEasingDuration = Clutter.Actor.prototype.set_easing_duration;
|
||||||
|
Clutter.Actor.prototype.set_easing_duration = function(msecs) {
|
||||||
|
origSetEasingDuration.call(this, adjustAnimationTime(msecs));
|
||||||
|
};
|
||||||
|
let origSetEasingDelay = Clutter.Actor.prototype.set_easing_delay;
|
||||||
|
Clutter.Actor.prototype.set_easing_delay = function(msecs) {
|
||||||
|
origSetEasingDelay.call(this, adjustAnimationTime(msecs));
|
||||||
|
};
|
||||||
|
|
||||||
Clutter.Actor.prototype.toString = function() {
|
Clutter.Actor.prototype.toString = function() {
|
||||||
return St.describe_actor(this);
|
return St.describe_actor(this);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user