mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-31 08:21:59 +02:00
Set unreveal timeout after reveal finishes
Instead of setting hide controls timeout immediately when starting revealing, make the time controls are revealed constant by setting timeout after animation finishes.
This commit is contained in:
@@ -31,6 +31,9 @@ class ClapperCustomRevealer extends Gtk.Revealer
|
||||
|
||||
revealChild(isReveal)
|
||||
{
|
||||
if(this.reveal_child === isReveal)
|
||||
return;
|
||||
|
||||
if(isReveal)
|
||||
this.visible = true;
|
||||
|
||||
@@ -188,6 +191,12 @@ class ClapperRevealerTop extends CustomRevealer
|
||||
{
|
||||
if(this.transition_type !== this._requestedTransition)
|
||||
this.transition_type = this._requestedTransition;
|
||||
|
||||
if(this.child_revealed) {
|
||||
const clapperWidget = this.root.child;
|
||||
|
||||
clapperWidget._setHideControlsTimeout();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user