mirror of
https://github.com/Trensa-Organization/hy3.git
synced 2025-03-15 18:53:40 +01:00
Damage bar when animating workspace slide
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
445381f871
commit
968cadf663
1 changed files with 4 additions and 2 deletions
|
@ -271,8 +271,6 @@ void Hy3TabBar::tick() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this->entries.empty()) this->destroy = true;
|
if (this->entries.empty()) this->destroy = true;
|
||||||
|
|
||||||
damage();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Hy3TabBar::damage() {
|
void Hy3TabBar::damage() {
|
||||||
|
@ -463,6 +461,10 @@ void Hy3TabGroup::tick() {
|
||||||
} else {
|
} else {
|
||||||
if (this->bar.fade_opacity.goal() != 1.0) this->bar.fade_opacity = 1.0;
|
if (this->bar.fade_opacity.goal() != 1.0) this->bar.fade_opacity = 1.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this->workspace->m_vRenderOffset.isBeingAnimated()) {
|
||||||
|
this->bar.damage();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
auto pos = this->pos.value();
|
auto pos = this->pos.value();
|
||||||
|
|
Loading…
Add table
Reference in a new issue