AvaloniaUI / Avalonia.Labs

Experimental Controls for Avalonia

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Step Bar animation problem when pressing Next or Previous too fast

MoHamzawy opened this issue · comments

Step bar will have weird behavior if you press too fast on previous or next.
I think this is the cause of the problem: In StepBar.cs, the 200 milliseconds is too long.

            if (_bar is ProgressBar progressBar)
            {
                var current = progressBar.Value;
                progressBar.BeginAnimation(ProgressBar.ValueProperty
                    , TimeSpan.FromMilliseconds(200)
                    , (double)selectIndex);
            }