Skip to content

armgit / Filee

Public Imported from GitHub
0

Free, open-source file converter. Convert 263 formats offline by drag & drop — images, PDF, Word, Excel, PowerPoint, HWP/HWPX, video, audio, e-books and archives. No upload, no Office needed.

Donut groups: the ring opens with a soft bounce again

SeoJCaliveef58088bd753
diff --git a/src/Filee.App/Controls/DonutMenu.cs b/src/Filee.App/Controls/DonutMenu.cs
index 759b6548..e68c171b 100644
--- a/src/Filee.App/Controls/DonutMenu.cs
+++ b/src/Filee.App/Controls/DonutMenu.cs
@@ -888,8 +888,9 @@ public sealed partial class DonutMenu : Control
for (var i = 0; i < _hover.Length; i++)
active |= i == ActiveIndex ? _hover[i].Step(1, dt) : _hover[i].Step(0, dt, 320, CriticalDamping);
active |= _centerPulse.Step(0, dt, 260, 12);
- // Critically damped: an overshoot would grow the ring past the room kept for it.
- active |= _expand.Step(_expanded >= 0 ? 1 : 0, dt, 420, 41);
+ // A soft bounce opening, like the slices popping out; folding away settles without one. The bounce grows the
+ // ring by about a pixel, well inside the room kept for it (SubRingSpace).
+ active |= _expanded >= 0 ? _expand.Step(1, dt, 320, 24) : _expand.Step(0, dt, 320, CriticalDamping);
if (_expanded < 0 && _expand.Value <= 0.001)
_shownExpanded = -1;
active |= StepProgress(dt);