fix ghost moving when pointer is the last node

This commit is contained in:
2021-07-28 15:07:16 +08:00
parent ef55d94ae9
commit 2626608a2d
2 changed files with 9 additions and 4 deletions

View File

@ -71,10 +71,8 @@ namespace BallanceTASEditor.UI {
}
private void updateSliderRange() {
long newSize = mFile.mFrameCount - 1;
if (mSlider.Value > newSize)
mSlider.Value = newSize;
mSlider.Maximum = newSize;
mSlider.Maximum = mFile.mFrameCount - 1;
mSlider.Value = mFile.GetPointerIndex();
}
private void funcSelectionHelp_SelectionChanged() {