Smooth scroll, audio fix

This commit is contained in:
Masusder 2026-06-27 18:52:51 +02:00
parent 2ea4fabb70
commit 1da370d1f4
4 changed files with 6 additions and 6 deletions

View File

@ -121,7 +121,7 @@ public sealed class SpectrumAnalyzer : UserControl
private void OnSourceEvent(object sender, SourceEventArgs e)
{
if (e.Event != ESourceEventType.Loading) return;
if (e is not { Event: ESourceEventType.Loading } g) return;
_spectrumProvider = Source.Spectrum;
UpdateFrequencyMapping();
}

View File

@ -116,9 +116,9 @@ public sealed class Timeclock : UserControl
private void OnSourceEvent(object sender, SourceEventArgs e)
{
if (e.Event != ESourceEventType.Loading || Source == null) return;
if (e is not { Event: ESourceEventType.Loading } || Source == null) return;
Label = Source.PlayedFile.FileName;
Dispatcher.BeginInvoke((Action) CalculateTime);
Dispatcher.BeginInvoke(CalculateTime);
}
private void OnSourcePropertyChangedEvent(object sender, SourcePropertyChangedEventArgs e)

View File

@ -100,8 +100,8 @@ public sealed class Timeline : UserControl
private void OnSourceEvent(object sender, SourceEventArgs e)
{
if (e.Event != ESourceEventType.Loading || Source == null) return;
Dispatcher.BeginInvoke((Action) UpdateTimeline);
if (e is not { Event: ESourceEventType.Loading } || Source == null) return;
Dispatcher.BeginInvoke(UpdateTimeline);
}
private void OnSourcePropertyChangedEvent(object sender, SourcePropertyChangedEventArgs e)

View File

@ -126,7 +126,7 @@
<Setter Property="tiledExplorer:SmoothScroll.IsEnabled"
Value="True" />
<Setter Property="tiledExplorer:SmoothScroll.Factor"
Value="1.25" />
Value="0.1" />
<Setter Property="SelectionMode"
Value="Extended" />
<Setter Property="ContextMenu"