Ver Fonte

Deleting in TextInput now makes sure there's at least one character visible on the left.

cib há 12 anos atrás
pai
commit
514cf477c3
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      Modules/Contents/UI/Source/PolyUITextInput.cpp

+ 1 - 1
Modules/Contents/UI/Source/PolyUITextInput.cpp

@@ -666,7 +666,7 @@ void UITextInput::updateCaretPosition() {
 		// Make sure the new caret position is visible.
 		// Make sure the new caret position is visible.
 
 
 		// Try scrolling left.
 		// Try scrolling left.
-		while(caretImagePosition < horizontalPixelScroll) {
+		while(caretImagePosition <= horizontalPixelScroll && horizontalCharacterScroll > 0) {
 			horizontalCharacterScroll--;
 			horizontalCharacterScroll--;
 
 
 			// Update pixel scroll from new character scroll.
 			// Update pixel scroll from new character scroll.