micro optimization fixes
This commit is contained in:
1 parent
0d7203f84b
commit
da60ecb719
36 files changed
+1781
-521
No files matched your search
@@ -27,6 +27,10 @@ pub(crate) struct DimAnimation {
|
||||
}
|
||||
|
||||
impl DimAnimation {
|
||||
pub(crate) fn needs_update(&self, target: f64) -> bool {
|
||||
self.target != target || self.current != target
|
||||
}
|
||||
|
||||
pub(crate) fn is_animating(&self) -> bool {
|
||||
self.current != self.target
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user