This commit is contained in:
Tyfon
2024-06-05 14:37:05 -07:00
parent 5b2fb51a18
commit 73aabbf96a
4 changed files with 6 additions and 3 deletions

View File

@@ -32,7 +32,9 @@ namespace UIFixes
}
scrollRect.verticalNormalizedPosition = StashScrollPosition;
scrollRect.onValueChanged.AddListener(UpdateScrollPosition);
element.R().UI.AddDisposable(() => scrollRect.onValueChanged.RemoveListener(UpdateScrollPosition));
}
public class SyncStashScrollPatch : ModulePatch