Skip to content

Commit e44bcad

Browse files
committed
Liitle Change
1 parent d38468e commit e44bcad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CodeBeam.MudBlazor.Extensions/Components/Wheel/MudWheel.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ protected async Task HandleOnSwipe(SwipeEventArgs args)
219219
_animateValue = - GetAnimateValue();
220220
}
221221

222-
int changedCount = (Math.Abs((int)args.SwipeDelta) / (Sensitivity == 0 ? 1 : Sensitivity));
222+
int changedCount = (Math.Abs((int)(args.SwipeDelta ?? 0)) / (Sensitivity == 0 ? 1 : Sensitivity));
223223
for (int i = 0; i < changedCount; i++)
224224
{
225225
await _animate.Refresh();

0 commit comments

Comments
 (0)