Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2 tasks done
towerofnix opened this issue Mar 31, 2023 · 2 comments
Open
2 tasks done
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed priority:high
Milestone

Comments

@towerofnix
Copy link

Before opening the issue, have you...?

  • Searched for existing issues
  • 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?

slimhudbug.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 towerofnix added the bug Something isn't working label Mar 31, 2023
@AlexPerathoner
Copy link
Owner

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 AlexPerathoner added help wanted Extra attention is needed priority:high labels Apr 1, 2023
@AlexPerathoner AlexPerathoner added this to the v1.5.2 milestone Apr 1, 2023
@AlexPerathoner AlexPerathoner self-assigned this Apr 1, 2023
@SoCuul
Copy link

SoCuul commented Sep 10, 2023

Any progress on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed priority:high
Projects
None yet
Development

No branches or pull requests

3 participants