mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Fixed user popup not working.
This commit is contained in:
parent
49398300d6
commit
39ee6efffc
|
@ -1072,14 +1072,15 @@ void ChannelView::mouseReleaseEvent(QMouseEvent *event)
|
|||
if (event->button() == Qt::LeftButton) {
|
||||
this->dCSelection_.selectingLeft = this->dCSelection_.selectingRight =
|
||||
false;
|
||||
if (this->isMouseDown_ || this->isDoubleClick_) {
|
||||
if (this->isMouseDown_) {
|
||||
this->isMouseDown_ = false;
|
||||
this->isDoubleClick_ = false;
|
||||
|
||||
if (fabsf(distanceBetweenPoints(this->lastPressPosition_,
|
||||
event->screenPos())) > 15.f) {
|
||||
return;
|
||||
}
|
||||
} else if (this->isDoubleClick_) {
|
||||
this->isDoubleClick_ = false;
|
||||
// Was actually not a wanted triple-click
|
||||
if (fabsf(distanceBetweenPoints(this->lastDClickPosition_,
|
||||
event->screenPos())) > 10.f) {
|
||||
|
|
Loading…
Reference in a new issue