Home

xmn / bettertrumpet

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

fix: volume slider thumb offset and fluid track-click animation

last month

9332b27
Authored
xammen8/23/2026, 1:04:02 AM
- Compensate thumb width in SetPositionByControlPoint so the thumb
  center aligns with the click position (right end reaches 100, not ~92).
- Track clicks glide with a time-based cubic ease-out driven by a WPF
  DoubleAnimation clock on PART_Track.Value; the integer audio binding
  commits only when the percentage changes. Unloaded completes the
  animation so closing the flyout cannot leave Value stuck partway.
- A held track click that starts moving bridges through a 50 ms handoff
  into direct drag; an immediate move after the press skips the handoff
  and drags directly, and the spent handoff snaps out of animation mode.
- Animated glides emit throttled tick feedback like drags.

Parent5486e11

1 file changed
  • EarTrumpet/UI/Controls/VolumeSlider.cs+240−26