Fixed double click selection.
This commit is contained in:
@@ -76,4 +76,14 @@ struct Selection {
|
||||
}
|
||||
};
|
||||
|
||||
struct DoubleClickSelection {
|
||||
int originalStart = 0;
|
||||
int originalEnd = 0;
|
||||
int origMessageIndex;
|
||||
bool selectingLeft = false;
|
||||
bool selectingRight = false;
|
||||
SelectionItem origStartItem;
|
||||
SelectionItem origEndItem;
|
||||
};
|
||||
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -485,7 +485,7 @@ int MessageLayoutContainer::getSelectionIndex(QPoint point)
|
||||
}
|
||||
|
||||
// this is the word
|
||||
if (point.x() < this->elements_[i]->getRect().right()) {
|
||||
if (point.x() <= this->elements_[i]->getRect().right()) {
|
||||
index += this->elements_[i]->getMouseOverIndex(point);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user