mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-14 00:04:17 +09:00
Fix animation api breaking change for St.Adjustment
This commit is contained in:
11
utils.js
11
utils.js
@@ -473,8 +473,15 @@ var animate = function(actor, options) {
|
||||
|
||||
delete options.transition;
|
||||
}
|
||||
|
||||
actor.ease(options);
|
||||
|
||||
let params = [options];
|
||||
|
||||
if (actor instanceof St.Adjustment) {
|
||||
params.unshift(options.value);
|
||||
delete options.value;
|
||||
}
|
||||
|
||||
actor.ease.apply(actor, params);
|
||||
}
|
||||
|
||||
var isAnimating = function(actor, prop) {
|
||||
|
||||
Reference in New Issue
Block a user