SlimHUD icon indicating copy to clipboard operation
SlimHUD copied to clipboard

SlimHUD shrinks when the hide animation is interrupted ("side grow" style)

Open towerofnix opened this issue 2 years ago • 2 comments

Before opening the issue, have you...?

  • [X] Searched for existing issues
  • [X] Updated SlimHUD to the latest version (if applicable)

Describe the bug

SlimHUD doesn't handle its "hide" animation being interrupted cleanly. There's some weird flickering to do with animation state, and at least in the case of "side grow" style, it ends up shrunk down for some reason. This issue doesn't resolve itself even after SlimHUD has fully hidden and been re-shown (the only way to fix it is to fully quit and reopen SlimHUD).

Steps to reproduce

Change the volume/brightness to show SlimHUD. Then wait for the bar to start hiding. While it's in the progress of hiding, interrupt it by changing the volume/brightness again.

I haven't tested other animations so the broken scaling might only be an issue with "side grow", but there may be similar bugs in other style show/hide animations.

Expected behavior

Animation state is handled smoothly, either by reversing course while the hide animation is part through, or just resetting to progress-zero on the show state.

I haven't checked how animation state is handled by SlimHUD but I'm guessing this is just an issue with not cancelling the hide animation when the show animation is started!

Anything else?

https://user-images.githubusercontent.com/9948030/229180257-f1831010-bef5-438f-a1aa-036eabb9b09a.mp4

Environment Information (please complete the following information)

- macOS version: 13.4 Ventura beta 1 (this is an issue on 13.3 as well)
- Mac model: Mac Mini M1
- Monitor(s): M28U
- Apple Silicon/M1 (yes or no): yeppers

towerofnix avatar Mar 31 '23 16:03 towerofnix

The animation should be getting cancelled, as per #128 . If I remember correctly I removed the final state of the hide animation, as that would have created a flickering - and that final state also includes the size and position of the hud. So when the animation is cancelled at the wrong moment, it gets set to a wrong value. I'll look into it

AlexPerathoner avatar Apr 01 '23 01:04 AlexPerathoner

Any progress on this?

SoCuul avatar Sep 10 '23 07:09 SoCuul