Home

xmn / bettertrumpet

publicxammen/BetterTrumpet· sync paused
Overview Code History Branches Pull requestsIssuesInsights
master
HomeOverview Code PRsIssues

fix: media popup stability and coordination improvements

2 months ago

f737f32
Authored
xammen7/29/2026, 5:51:08 AM
Resolves glitchy popup behavior reported by users:

- Added popup/flyout coordination to prevent conflicts
- Increased hide timer from 300ms to 800ms for better stability
- Implemented 20px mouse tolerance zone around popup
- Improved media session selection to prioritize playing sessions
- Fixed thumbnail cache invalidation on session changes

Changes:
- App.xaml.cs: Popup closes before flyout opens, blocks popup when flyout is open
- MediaPopupWindow.xaml.cs: 800ms timer, 20px tolerance zone, double-check before closing
- MediaSessionService.cs: Prioritize Playing sessions, invalidate thumbnail cache on session change

Tested: All scenarios pass including multi-player selection and mouse movement stability.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

Parent3fe2e6d

3 files changed
  • EarTrumpet/App.xaml.cs+22−1
  • EarTrumpet/DataModel/MediaSessionService.cs+64−2
  • EarTrumpet/UI/Views/MediaPopupWindow.xaml.cs+59−6