fix ghost moving when pointer is the last node

This commit is contained in:
yyc12345 committed 2021-07-28 15:07:16 +08:00
1 parent ef55d94ae9
commit 2626608a2d
2 files changed
+9 -4

No files matched your search

+2 -4
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() {