File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -786,7 +786,6 @@ private void Update()
786786 {
787787 _logScrollView . verticalNormalizedPosition = 0.0f ;
788788 LayoutRebuilder . ForceRebuildLayoutImmediate ( ( RectTransform ) _logScrollView . transform ) ;
789- //_logScrollView.verticalNormalizedPosition = 0.0f;
790789 if ( _pretendScrollAtBottom && ( _logScrollView . verticalNormalizedPosition < 0f || Mathf . Approximately ( _logScrollView . verticalNormalizedPosition , 0f ) ) )
791790 {
792791 _pretendScrollAtBottom = false ;
@@ -904,7 +903,7 @@ private void LateUpdate()
904903 if ( StoredLogText != string . Empty )
905904 {
906905 // Check if should scroll to the bottom (not working - vertical changes between Update() and LateUpdate() - why???!!!)
907- if ( _pretendScrollAtBottom || _logScrollView . verticalNormalizedPosition < 0f || Mathf . Approximately ( _logScrollView . verticalNormalizedPosition , 0f ) )
906+ if ( _pretendScrollAtBottom || _logScrollView . verticalNormalizedPosition < 0f || Mathf . Approximately ( _logScrollView . verticalNormalizedPosition , 0f ) || _logScrollView . verticalNormalizedPosition < 0.1f )
908907 {
909908 _scrollToBottomNextFrame = true ;
910909 }
You can’t perform that action at this time.
0 commit comments