Update the `animation.to` value, which might be a `FluidValue`
(value: T | FluidValue<T>)
| 896 | |
| 897 | /** Update the `animation.to` value, which might be a `FluidValue` */ |
| 898 | protected _focus(value: T | FluidValue<T>) { |
| 899 | const anim = this.animation |
| 900 | if (value !== anim.to) { |
| 901 | if (getFluidObservers(this)) { |
| 902 | this._detach() |
| 903 | } |
| 904 | anim.to = value |
| 905 | if (getFluidObservers(this)) { |
| 906 | this._attach() |
| 907 | } |
| 908 | } |
| 909 | } |
| 910 | |
| 911 | protected _attach() { |
| 912 | let priority = 0 |