Remove bounds check for text selection, makes text selection a little easier for users

This commit is contained in:
Simon Robertshaw 2012-07-24 17:45:31 +01:00
parent dceefed030
commit 7ef3f8cbe9

View File

@ -101,8 +101,6 @@ std::string Label::GetText()
}
void Label::OnMouseClick(int x, int y, unsigned button)
{
if(x > textPosition.X && x < textPosition.X + textSize.X && y > textPosition.Y && y < textPosition.Y + textSize.Y)
{
selecting = true;
if(multiline)
@ -113,7 +111,6 @@ void Label::OnMouseClick(int x, int y, unsigned button)
updateSelection();
}
}
void Label::OnMouseUp(int x, int y, unsigned button)
{