Преглед изворни кода

Fixed selection dragging in UITextInput

Ivan Safrin пре 13 година
родитељ
комит
f0bb91f365
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      Modules/Contents/UI/Source/PolyUITextInput.cpp

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

@@ -644,7 +644,7 @@ void UITextInput::selectLineFromOffset() {
 }
 
 void UITextInput::dragSelectionTo(Number x, Number y) {
-	x -= padding * 2.0;
+	x -= (padding * 2.0) + decoratorOffset;
 	y -= padding;
 	int lineOffset = y  / (lineHeight+lineSpacing);
 	if(lineOffset > lines.size()-1)