Przeglądaj źródła

Merge pull request #286 from CIB/fix-text-input-rebase

Deleting in TextInput now makes sure there's at least one character visi...
Ivan Safrin 12 lat temu
rodzic
commit
5c02ed162b
1 zmienionych plików z 1 dodań i 1 usunięć
  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.
 
 		// Try scrolling left.
-		while(caretImagePosition < horizontalPixelScroll) {
+		while(caretImagePosition <= horizontalPixelScroll && horizontalCharacterScroll > 0) {
 			horizontalCharacterScroll--;
 
 			// Update pixel scroll from new character scroll.