mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-06 00:17:25 +02:00
Remove bounds check for text selection, makes text selection a little easier for users
This commit is contained in:
@@ -101,8 +101,6 @@ std::string Label::GetText()
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Label::OnMouseClick(int x, int y, unsigned button)
|
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;
|
selecting = true;
|
||||||
if(multiline)
|
if(multiline)
|
||||||
@@ -113,7 +111,6 @@ void Label::OnMouseClick(int x, int y, unsigned button)
|
|||||||
|
|
||||||
updateSelection();
|
updateSelection();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void Label::OnMouseUp(int x, int y, unsigned button)
|
void Label::OnMouseUp(int x, int y, unsigned button)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user