diff --git a/source/BulkCrapUninstaller/Forms/Wizards/FirstStartBox.cs b/source/BulkCrapUninstaller/Forms/Wizards/FirstStartBox.cs index e45a3b3b..4d2f7394 100644 --- a/source/BulkCrapUninstaller/Forms/Wizards/FirstStartBox.cs +++ b/source/BulkCrapUninstaller/Forms/Wizards/FirstStartBox.cs @@ -169,6 +169,8 @@ private void timer1_Tick(object sender, EventArgs e) //Console.WriteLine(string.Format("{0,5}{1,5}{2,5}", currentXPos, change, resultXPos)); + resultXPos = Math.Clamp(resultXPos, scrollPanel.HorizontalScroll.Minimum, scrollPanel.HorizontalScroll.Maximum); + // Double assign is needed because of a bug in the control scrollPanel.HorizontalScroll.Value = resultXPos; scrollPanel.HorizontalScroll.Value = resultXPos;